home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / os2 / rxbas210.zip / REXXBASE.INF (.txt) < prev    next >
OS/2 Help File  |  1996-03-20  |  90KB  |  4,082 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. RexxBase The dBase Database For Rexx ΓòÉΓòÉΓòÉ
  3.  
  4. RexxBase and "The dBase Database for Rexx" are trademarks of American Coders, 
  5. LTD. 
  6.  
  7. OS/2 is a registered trademark of the International Business Machines 
  8. Corporation. 
  9.  
  10. dBase, dBase III and dBase IV are trademarks of Borland Corporation. 
  11.  
  12. Other trademarks are the trademarks of their respective trademark owners. 
  13.  
  14. Contacts: 
  15.  
  16. American Coders, LTD. 
  17.  
  18. Post Office Box 97462 
  19.  
  20. Raleigh, NC 27624 
  21.  
  22. (919) 846-2014 
  23.  
  24. CompuServe ID:  74150,2370 
  25.  
  26. Internet(USENET) ID: joe@usacoder.rtp.nc.us 
  27.  
  28.  
  29. January 1996 Edition.  Version 2.05. 
  30.  
  31. Copyright 1993-96 American Coders LTD Raleigh NC USA 
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ 1.1. Rights and Limitations ΓòÉΓòÉΓòÉ
  35.  
  36. American Coders, LTD makes no warranties as to the information in this guide. 
  37. Additionally, American Coders Ltd is not responsible or liable for any loss or 
  38. damage of any kind resulting from use of this product. 
  39.  
  40. The Software is protected by the Copyright laws of the United States of 
  41. America, as well as by the Copyright laws of many other countries pursuant to 
  42. international treaties.  All rights reserved.  No part of the RexxBase computer 
  43. program, documentation or related files may be reproduced photocopied, stored 
  44. on a retrieval system, or transmitted except as provided by U. S. Copyright 
  45. law. 
  46.  
  47.  
  48. ΓòÉΓòÉΓòÉ 1.2. System Overview. ΓòÉΓòÉΓòÉ
  49.  
  50. RexxBase is a REXX external function DLL to be used by your command files to 
  51. access dBase files. RexxBase offers database access functions to Rexx command 
  52. procedures.  By using the RexxBase functions, Rexx programs gain access to tens 
  53. of thousands of database files written, primarily, for the PC/MS Dos 
  54. environment. 
  55.  
  56. RexxBase generates dBase field names and values that are available directly to 
  57. a Rexx program.  The Rexx program can change this data and update dBase files 
  58. directly.  Also database file control information is available to the Rexx 
  59. program.  This information includes such data as last date the database was 
  60. updated, number of records on file, field names, etc. 
  61.  
  62.  
  63. ΓòÉΓòÉΓòÉ 1.3. Version and Requirements. ΓòÉΓòÉΓòÉ
  64.  
  65. Version 2.10. 
  66.  
  67. RexxBase runs under 
  68.  
  69. o OS/2 2.x or higher  and Warp 
  70.  
  71. o requires a minimum of 6 megabytes of RAM. 
  72.  
  73. o requires 500k of disk space. 
  74.  
  75.  
  76. ΓòÉΓòÉΓòÉ 1.4. Version History. ΓòÉΓòÉΓòÉ
  77.  
  78. The following is a basic history of changes for each version and release. 
  79.  
  80.  
  81. ΓòÉΓòÉΓòÉ 1.4.1. Version 2.10 March 21, 1996 ΓòÉΓòÉΓòÉ
  82.  
  83.  Added new function to registered DLL.  RexxBase_WriteDBFWithLock. This will 
  84. allow serialization of database writes and prevent errors when multiple hits 
  85. occur to the same database file and associated index and text files. 
  86.  
  87. Added database variable "databasename".dbasefileformat.   This returns dBase3 
  88. or dBase4, based on the dbf's format.  Note: without MDX files or MEMO fields a 
  89. DBF file format defaults to dBase3. 
  90.  
  91. Added internal record locking to registered version (rv) through the use of 
  92. semaphores. 
  93.  
  94. Added database variable "databasename".dbasefileformat.   This returns dBase3 
  95. or dBase4, based on the dbf's format.  Note: without MDX files or MEMO fields a 
  96. DBF file format defaults to dBase3. 
  97.  
  98. Recompiled INSTALL.EXE and REXXBASE.EXE with newest version of VisPro/REXX. 
  99. (3.01). 
  100.  
  101. DLL program would allow for only 3 MDX tags. 
  102.  
  103. EXE program could not create indexes with numeric fields. 
  104.  
  105. Modify function was using the current file's dBaseFileFormat field instead of 
  106. the global field.  Thereby, preventing conversions of files from one format to 
  107. another. 
  108.  
  109. Documentation failed to fully describe the RexxBase.ERROR control variable. 
  110.  
  111. Corrected documentation with regards to specifying a TAG name when opening a 
  112. file. 
  113.  
  114. Writes followed immediately by an Update would not create valid indexes and 
  115. caused SYS3175 errors. 
  116.  
  117. Corrected EXE errors when catalog file contained a DBF that doesn't exist. 
  118.  
  119. Corrected problem when adding an MDX tag in the EXE.  The tag name would not 
  120. show up. 
  121.  
  122. PackDBF function didn't update the header correctly. 
  123.  
  124.  
  125. ΓòÉΓòÉΓòÉ 1.4.2. Version 2.06 January 22, 1996 ΓòÉΓòÉΓòÉ
  126.  
  127.  Install program was marked as not executable. 
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 1.4.3. Version 2.05 January 2, 1996 ΓòÉΓòÉΓòÉ
  131.  
  132.  Install program now looks for config.sys in BOOTed drive. 
  133.  
  134.  If unable to allocate memory in OPEN function was causing a 3175 error. 
  135.  
  136.  Enhanced record scope. 
  137.  
  138.  Added logic to allow binary data to be stored in CHAR and MEMO fields. 
  139. RexxBase.UseStringLengths = "YES|NO" 
  140.  
  141.  Corrected ModifyDBF function causing a 3175 error. 
  142.  
  143.  Added code to registered version to prevent copyright notice from being 
  144. displayed. 
  145.  
  146.  Improved Export/Import function handling of signed numeric data. 
  147.  
  148.  
  149. ΓòÉΓòÉΓòÉ 1.4.4. Version 2.04  Sept 30, 1995 ΓòÉΓòÉΓòÉ
  150.  
  151. ReadPrevDBF and others failed when GOTORecord(bottom) was used. 
  152.  
  153. UpdateDBF failed for both NDX and MDX indexes. 
  154.  
  155. Packing dBase IV style DBT files used incorrect blocking factor. This could and 
  156. most likely did create exception conditions. 
  157.  
  158. Packing dBase IV MDX files got larger in size. 
  159.  
  160. Reset Index Logic failed to verify if any TAGs were in use. 
  161.  
  162.  
  163. ΓòÉΓòÉΓòÉ 1.4.5. Version 2.03  July 31, 1995 ΓòÉΓòÉΓòÉ
  164.  
  165. The switch AllowDuplicateIndexes now works in conjunction with the index file 
  166. indicator Duplicates Allowed. 
  167.  
  168. MDX indexing algorithm improved and corrected. 
  169.  
  170. NDX file links updated incorrectly for large files. 
  171.  
  172. SummarizeDBF function corrupted field that was before a numeric field. 
  173.  
  174. Added VX-Rexx macro facility. 
  175.  
  176. INSTALL program was not HPFS aware. 
  177.  
  178.  
  179. ΓòÉΓòÉΓòÉ 1.4.6. Version 2.02  June 15, 1995 ΓòÉΓòÉΓòÉ
  180.  
  181. Corrected documentation error. RexxBase.SkipDeleted switches use ON or OFF. 
  182.  
  183. Corrected DLL to reflect documentation: RexxBase.dBaseFileType should be 
  184. RexxBase.dBaseFileFormat.  Use RexxBase.dBaseFileFormat. 
  185.  
  186. Corrected DLL to reflect documentation: RexxBase.dBaseFileType default value is 
  187. "dbase3". 
  188.  
  189. Improved GotoRecord function.  Specifically TOP parameter and indexes now in 
  190. synch. 
  191.  
  192. CREATE and PACKING functions failed for dBase IV memo fields. 
  193.  
  194. Corrected documentation error.  References to RexxBase.AllowDuplicateIndex 
  195. corrected to RexxBase.AllowDuplicateIndexes. 
  196.  
  197. Corrected Reindex problem. Not building control blocks correctly. Function 
  198. required closing DBF before using again. 
  199.  
  200. Patched Reindex function memory leak. 
  201.  
  202. CreateDBFFrom function required closing source DBF before using again. 
  203.  
  204. Restored CloseAllDBF to unregistered version. 
  205.  
  206. Filter routines recalculated dates twice to produce incorrect results(rv). 
  207.  
  208. REXXBASE.EXE concatenated INDEX filenames incorrectly. 
  209.  
  210.  
  211. ΓòÉΓòÉΓòÉ 1.4.7. Version 2.01 May 16, 1995 ΓòÉΓòÉΓòÉ
  212.  
  213.  Shareware zip files missing component files for install process. 
  214.  
  215.  
  216. ΓòÉΓòÉΓòÉ 1.4.8. Version 2.00 May 15, 1995 ΓòÉΓòÉΓòÉ
  217.  
  218. Corrected bug with filtering routines. 
  219.  
  220. Corrected bug with duplicate indexes not being caught. 
  221.  
  222. Corrected bug in Rexxbase_DateCalc. 
  223.  
  224. Added function Rexxbase_DayOfWeek to registered version. 
  225.  
  226.  
  227. ΓòÉΓòÉΓòÉ 1.4.9. Version 2.00 BETA Apr. 15, 1995 ΓòÉΓòÉΓòÉ
  228.  
  229.  Introduced dBase IV MDX files and the following new functions: 
  230.  
  231. o RexxBase_SetIndexTagName 
  232.  
  233. o RexxBase_CreateMultipleIndexFile 
  234.  
  235. o RexxBase_AddTagToIndex 
  236.  
  237. o RexxBase_DropTagFromIndex 
  238.  
  239. o RexxBase_LockRecord 
  240.  
  241. o RexxBase_FindAndLockRecord 
  242.  
  243. o RexxBase_GotoAndLockRecord 
  244.  
  245. Introduced several new control fields: 
  246.  
  247. o RexxBase.AllowDuplicateIndexes 
  248.  
  249. o Rexxbase.Logical 
  250.  
  251. o RexxBase.SkipDeleted 
  252.  
  253. o RexxBase.dBaseFileType 
  254.  
  255. Introduced several new database control variables: 
  256.  
  257. o dbfname.IndexCount 
  258.  
  259. o dbfname.IndexFilename 
  260.  
  261. o dbfname.IndexFileType.xxx 
  262.  
  263. o dbfname.IndexFields.xxx 
  264.  
  265. o dbfname.IndexTagname.xxx.yyy 
  266.  
  267. o dbfname.IndexTagFields.xxx.yyy 
  268.  
  269. o dbfname.IndexValue.xxx(.yyy) 
  270.  
  271. Corrected several bugs and documentation errors. 
  272.  
  273. Bug in subroutine db3_create_index failed to generate valid anchor block. 
  274.  
  275. Documentation failed to inform that the filter string of the RexxBase_FilterDBF 
  276. and RexxBase_ScanForRecord must be enclosed in quotes. 
  277.  
  278.  
  279. ΓòÉΓòÉΓòÉ 1.5. American Coders Ltd. ΓòÉΓòÉΓòÉ
  280.  
  281. American Coders, LTD. 
  282.  
  283. Post Office Box 97462 
  284.  
  285. Raleigh, NC 27624 
  286.  
  287. (919) 846-2014 
  288.  
  289. CompuServe ID:  74150,2370 
  290.  
  291. Programming Solutions For Your Business 
  292.  
  293.  
  294. ΓòÉΓòÉΓòÉ 1.6. How To Install ΓòÉΓòÉΓòÉ
  295.  
  296. Use the INSTALL.EXE that came with this program 
  297.  
  298. The install program allows you to specify if you want your CONFIG.SYS file 
  299. updated.  If you chose this you will be prompted for a backup filename. 
  300.  
  301. You can specify if you want all the files moved to the target directory. 
  302.  
  303. Copy the RXBASCAT.DBF and RXBASCAT.MDX files to the target directory. 
  304.  
  305. Have the RexxBase Front-End program copied to the desktop. 
  306.  
  307. RexxBase is distributed using the Shareware system. Every shareware copy of the 
  308. program comes with a 30 day trial offer.  If after 30 days the user finds the 
  309. RexxBase product acceptable they are expected to register and pay $59.00 plus 
  310. shipping/handling/taxes.  Registered users of the product receive a free 
  311. upgrade to the current release, 90 days free support on CompuServe and 30 days 
  312. free telephone support. 
  313.  
  314.  
  315. ΓòÉΓòÉΓòÉ 1.7. What Registering Gets You. ΓòÉΓòÉΓòÉ
  316.  
  317. When you register you receive: 
  318.  
  319. o The registered user DLL. 
  320.  
  321. o Limited rights to distribute the DLL. 
  322.  
  323. o Upgrade to the next release and immediate bug fixes. 
  324.  
  325. o Hardcopy documentation. 
  326.  
  327. o One months telephone and e-mail support. 
  328.  
  329.  
  330. ΓòÉΓòÉΓòÉ 1.8. How To Register Your Copy ΓòÉΓòÉΓòÉ
  331.  
  332. We have several methods for you to register your copy of RexxBase. 
  333.  
  334. o Registration Form. 
  335.  
  336. o PsL - Public Software Library - 800/Fax/WWW Credit Card Orders. 
  337.  
  338. o BMT - BMT Micro - 800/Fax/WWW Credit Card Orders 
  339.  
  340. o Immediate BBS Download - with Credit Card. 
  341.  
  342. o CompuServe SWREG. 
  343.  
  344. There is also a shipping and handling charge.  For U.S. and Canada 
  345. registrations it is $5.00. For all other international orders $10.00. 
  346.  
  347. If you are planning to order ten (10) or more copies use the SITELICE.DOC in 
  348. your package. 
  349.  
  350.  
  351. ΓòÉΓòÉΓòÉ 1.8.1. Registration Form. ΓòÉΓòÉΓòÉ
  352.  
  353. Print out the file REGISTER.FRM.  Attach a check and mail to us using the 
  354. address on the form (or see above). 
  355.  
  356.  
  357. ΓòÉΓòÉΓòÉ 1.8.2. PsL - Public Software Library - 800/Fax/WWW Credit Card Orders. ΓòÉΓòÉΓòÉ
  358.  
  359. American Coders is using the services of PsL "Public (software) Library". They 
  360. provide a service for all shareware authors, for a small fee, paid by the 
  361. author, they will take credit card orders through their 800 number and Fax. 
  362. Once PsL has notified us of your order, we will ship it within two days. 
  363.  
  364. PsL does NOT handle question or inquiries. 
  365.  
  366. RexxBase Psl item/product number is 11174. 
  367.  
  368. CREDIT CARD ORDERS ONLY - 
  369.  
  370. You can order with MC, Visa, AMEX, or Discover from Public (software) Library 
  371. by calling 800-2424-PsL or 713-524-6394 or by FAX to 713-524-6398 or by CIS 
  372. Email to 71355,470. You can also mail credit card orders to PsL at P.O.Box 
  373. 35705, Houston, TX 77235-5705. 
  374.  
  375. THE ABOVE NUMBERS ARE FOR ORDERS ONLY. 
  376.  
  377. Any questions about the status of the shipment of the order, refunds, 
  378. registration options, product details, technical support, volume discounts, 
  379. dealer pricing, site licenses, etc., must be directed to 919-846-2014 or write 
  380. American Coders at our address. 
  381.  
  382. To insure that you get the latest version, PsL will notify you the day of your 
  383. order and we will ship the product directly to you. 
  384.  
  385.  
  386. ΓòÉΓòÉΓòÉ 1.8.3. BMT - BMT Micro - 800/Fax/WWW Credit Card Orders ΓòÉΓòÉΓòÉ
  387.  
  388. American Coders is using the services of BMT Micro. They provide a service for 
  389. all shareware authors, for a small fee, paid by the author, they will take 
  390. credit card orders through their BBS, Internet Web site, 800 number and Fax. 
  391. Once BMT has notified us of your order, we will ship it within two days. 
  392.  
  393.  Mail Orders To: BMT Micro  PO 15016 Wilmington, NC 28408 U.S.A. 
  394.  
  395.  Voice Orders: 9:00am - 7:00pm EST (-5 GMT)  (800)  414-4268 (orders only) 
  396. (910) 791-7052 
  397.  
  398.  Fax Orders: (910) 350-2937  24 hours / 7 Days 
  399.  
  400.  Online Orders via modem: (910) 350-8061  10 lines  all 14.4K.      (910) 
  401. 799-0923  Direct 28.8K line 
  402.  
  403.  Online Orders via telnet: bmt.wilmington.net 
  404.  
  405.  Ordering and general ordering questions: 
  406.  
  407.  Via AOL: bmtmicro 
  408.  
  409.  via Compuserve: 74031,307 
  410.  
  411.  via Internet: orders@bmtmicro.com 
  412.  
  413.  BMT accepts Visa, Mastercard, Discover, American Express, Money Order, 
  414. Cashiers Check, Personal Check.  Please do not send cash in the mail.  Personal 
  415. checks are subject to clearance. 
  416.  
  417.  
  418. ΓòÉΓòÉΓòÉ 1.8.4. Another Credit Card Method And Faster Too. ΓòÉΓòÉΓòÉ
  419.  
  420. Peter Norloff's OS2SHAREWARE Bulletin Board will allow you to register. 
  421. OS2SHAREWARE accepts MC/Visa orders.  Once the order has been placed you 
  422. immediately receive your copy of the register package. While this copy may be 
  423. the fully registered version, you'll want to let us know you are out there. 
  424. Inside the package there is a I AM REGISTERED form. Fill it out and mail to us. 
  425. This will guarantee you receive the free upgrade you're due. 
  426.  
  427. Call (In VA. USA) 1-703-385-4325.  Follow the directions from the main menu for 
  428. registering shareware. 
  429.  
  430.  
  431. ΓòÉΓòÉΓòÉ 1.8.5. CompuServe SWREG. ΓòÉΓòÉΓòÉ
  432.  
  433. CompuServe offers a service to register shareware software. 
  434.  
  435. GO SWREG and follow the directions. 
  436.  
  437. RexxBase SWREG number is 1953. 
  438.  
  439. Charges are billed to your CompuServe account. 
  440.  
  441. Any questions about the status of the shipment of the order, refunds, 
  442. registration options, product details, technical support, volume discounts, 
  443. dealer pricing, site licenses, etc, must be directed to 919-846-2014 or write 
  444. American Coders at our address. 
  445.  
  446.  
  447. ΓòÉΓòÉΓòÉ 2. RexxBase File Structures. ΓòÉΓòÉΓòÉ
  448.  
  449. Every attempt has been made to keep the RexxBase DBF, DBT, MDX and NDX files 
  450. similar. But due to the inherent differences between DOS, OS2, REXX and PRG 
  451. files we could not make the fully functional features of a MDX or NDX file 
  452. similar.  For example, no dBase functions are allowed in index definitions. 
  453.  
  454.  
  455. ΓòÉΓòÉΓòÉ 2.1. File Naming. ΓòÉΓòÉΓòÉ
  456.  
  457. RexxBase does not assume default file extensions.  This due to the inherent 
  458. nature of HPFS files with its flexible file names. When opening and creating 
  459. files be sure to use the DBF, NDX and MDX suffix. Since memo files are never 
  460. defined, DBT files are the exception to this rule. 
  461.  
  462.  
  463. ΓòÉΓòÉΓòÉ 2.2. Database (DBF) File. ΓòÉΓòÉΓòÉ
  464.  
  465. There should be no difference between RexxBase DBF files and other xBase DBF. 
  466. If you feel that you found an inconsistency with RexxBase DBF files, please 
  467. notify us immediately. 
  468.  
  469.  
  470. ΓòÉΓòÉΓòÉ 2.3. Memo (DBT) File. ΓòÉΓòÉΓòÉ
  471.  
  472. There two different formats for DBT files. Both are dependent on which file 
  473. type was used when the DBF file is created. 
  474.  
  475. DBT files used to store MEMO field data, look like regular variables to Rexx. 
  476. With our testing, we have stored fields up to 262144 bytes in length. The 
  477. theoretical limit is 2^32-1.  This may incompatible with other xBase products. 
  478. Please refer to the Memo and binary data storage sections for more information. 
  479.  
  480.  
  481. ΓòÉΓòÉΓòÉ 2.3.1. Memo (DBT) File for dBase III format. ΓòÉΓòÉΓòÉ
  482.  
  483. dBase III files use a less dynamic storage algorithm. These files tend to get 
  484. rather large if the DBF file is not packed often. 
  485.  
  486. DBT files used to store MEMO field data.  With our testing, we have stored 
  487. fields up to 262144 bytes in length. The theoretical limit is 2^32-1. This may 
  488. incompatible with other xBase products. Please refer to the Memo and binary 
  489. data storage sections for more information. 
  490.  
  491.  
  492. ΓòÉΓòÉΓòÉ 2.3.2. Memo (DBT) File for dBase IV format. ΓòÉΓòÉΓòÉ
  493.  
  494. dBase IV files use a garbage collection algorithm to reuse space from formerly 
  495. used memo disk space. The algorithm is a LRU. While the files won't grow as 
  496. rapidly as dBase III DBTs. It's still a good idea to pack the associated DBF. 
  497.  
  498.  
  499. ΓòÉΓòÉΓòÉ 2.4. Index (NDX) File Field Differences. ΓòÉΓòÉΓòÉ
  500.  
  501. The ability to use index files is an integral part of any good database system. 
  502. We have introduced, what we feel, is an improved, yet limited, features to 
  503. index files in RexxBase. 
  504.  
  505. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  506. ΓöéDifferenceΓöéDescription                                  Γöé
  507. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  508. ΓöéSimple    ΓöéRexxBase does not use xBase functions within Γöé
  509. ΓöéData TypesΓöéindex functions.  Nor does it use inverse    Γöé
  510. Γöé          Γöédefinitions, i.e. using a minus sign to move Γöé
  511. Γöé          Γöéin a reverse key scan.                       Γöé
  512. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  513. ΓöéMixing    ΓöéRexxBase allows the mixing of Character,     Γöé
  514. ΓöéData TypesΓöéNumeric and Date data types.  All data in    Γöé
  515. Γöé          Γöéthis format are treated as Character by      Γöé
  516. Γöé          ΓöéRexxBase.                                    Γöé
  517. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  518. ΓöéDate Data ΓöéDate data types are treated as Character dataΓöé
  519. ΓöéTypes     Γöéand stored in the index in the native format.Γöé
  520. Γöé          ΓöéDate data types can be concatenated together Γöé
  521. Γöé          Γöéwith other data types. Some xBase products   Γöé
  522. Γöé          Γöéstore date in the index in a floating point  Γöé
  523. Γöé          Γöéformat.  By removing the floating point      Γöé
  524. Γöé          Γöéformat you should see a improvement in index Γöé
  525. Γöé          Γöéfile accessing for data types.               Γöé
  526. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  527. ΓöéNumeric   ΓöéNumeric data types are stored in a floating  Γöé
  528. ΓöéData TypesΓöépoint format.  When a key is defined as      Γöé
  529. Γöé          Γöénumeric all of the fields are summed         Γöé
  530. Γöé          Γöétogether.                                    Γöé
  531. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  532. ΓöéAccessing ΓöéThe only time you may access NDX files from  Γöé
  533. ΓöéxBase NDX Γöéother xBase programs is if the dBase index   Γöé
  534. Γöéfiles.    Γöéfile is strictly Character or Numeric fields Γöé
  535. Γöé          ΓöéONLY. Indexes using xBase functions are not  Γöé
  536. Γöé          Γöésupported by RexxBase.                       Γöé
  537. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  538.  
  539. See also Rexxbase.Unique. 
  540.  
  541. See also Rexxbase.AllowDuplicateIndexes. 
  542.  
  543.  
  544. ΓòÉΓòÉΓòÉ 2.5. Multiple Index (MDX) File Field Differences. ΓòÉΓòÉΓòÉ
  545.  
  546. The ability to use index files is an integral part of any good database system. 
  547. We have introduced, what we feel, is an improved, yet limited, features to 
  548. index file in RexxBase. 
  549.  
  550. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  551. ΓöéDifferenceΓöéDescription                                  Γöé
  552. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  553. ΓöéSimple    ΓöéRexxBase does not use xBase functions within Γöé
  554. ΓöéData TypesΓöéindex functions.  Nor does it use inverse    Γöé
  555. Γöé          Γöédefinitions, i.e.  using a minus sign to moveΓöé
  556. Γöé          Γöéin a reverse key scan.                       Γöé
  557. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  558. ΓöéMixing    ΓöéRexxBase allows the mixing of Character,     Γöé
  559. ΓöéData TypesΓöéNumeric and Date data types.  All data in    Γöé
  560. Γöé          Γöéthis format are treated as Character by      Γöé
  561. Γöé          ΓöéRexxBase.                                    Γöé
  562. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  563. ΓöéDate Data ΓöéDate data types are treated as Character dataΓöé
  564. ΓöéTypes     Γöéand stored in the index in the native format.Γöé
  565. Γöé          ΓöéDate data types can be concatenated together Γöé
  566. Γöé          Γöéwith other data types. Some xBase products   Γöé
  567. Γöé          Γöéstore date in the index in a floating point  Γöé
  568. Γöé          Γöéformat.  By removing the floating point      Γöé
  569. Γöé          Γöéformat you should see a improvement in index Γöé
  570. Γöé          Γöéfile accessing for data types.               Γöé
  571. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  572. ΓöéNumeric   ΓöéNumeric data types are stored in a floating  Γöé
  573. ΓöéData TypesΓöépoint format.  When a key is defined as      Γöé
  574. Γöé          Γöénumeric all of the fields are summed         Γöé
  575. Γöé          Γöétogether.                                    Γöé
  576. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  577. ΓöéAccessing ΓöéThe only time you may access MDX files from  Γöé
  578. ΓöéxBase MDX Γöéother xBase programs is if the dBase index   Γöé
  579. Γöéfiles.    Γöéfile is strictly Character or Numeric fields Γöé
  580. Γöé          ΓöéONLY. Indexes using xBase functions are not  Γöé
  581. Γöé          Γöésupported by RexxBase.                       Γöé
  582. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  583. ΓöéFOR       ΓöéThe FOR logical filter is not supported.     Γöé
  584. Γöéfilters.  Γöé                                             Γöé
  585. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  586. ΓöéDescendingΓöéDescending indexes are not supported.        Γöé
  587. ΓöéIndexes   Γöé                                             Γöé
  588. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  589.  
  590. See also Rexxbase.Unique. 
  591.  
  592. See also Rexxbase.AllowDuplicateIndexes. 
  593.  
  594.  
  595. ΓòÉΓòÉΓòÉ 3. How Initialize REXX For RexxBase Functions. ΓòÉΓòÉΓòÉ
  596.  
  597. Before calling any RexxBase functions your REXX command file must register the 
  598. RexxBase DLL.  To do this use the REXX command RXFUNCADD.  You need to register 
  599. only one RexxBase function - Rexxbase_Init.  Rexxbase_Init, when called, will 
  600. register all of the other RexxBase routines.  Since Rexxbase_Init cannot 
  601. register itself, your Rexx program must register it. 
  602.  
  603. Use RXFUNCADD to register the Rexxbase_Init function. 
  604.  
  605. Once registered, RexxBase will not have to be registered until the next time 
  606. you restart OS/2. 
  607.  
  608. If you want your REXX program can register the RexxBase functions. 
  609.  
  610. The format of the command is RXFUNCADD(FUNCTION, DLL, PROCEDURE) 
  611.  
  612. FUNCTION is the name of the RexxBase routine as your procedure will call it. 
  613.  
  614. DLL is the name of the RexxBase DLL file.  (Unless you rename it, it will 
  615. always be REXXBASE). 
  616.  
  617. PROCEDURE is the name of the function internal to the RexxBase DLL. 
  618.  
  619. Your program should contain the following: 
  620.  
  621. /* REXX */
  622. ret = rxfuncadd(rexxbase_init,Rexxbase,"Rexxbase_Init")
  623. ret = rexxbase_init()
  624.  
  625.  
  626. ΓòÉΓòÉΓòÉ 3.1. Example of Dropping a RexxBase Function. ΓòÉΓòÉΓòÉ
  627.  
  628. When your procedure is done with the RexxBase functions it can drop the 
  629. RexxBase functions.  This may help reduce memory requirements and free up 
  630. system resources.  Once dropped, a function will have to be reregistered if it 
  631. is to be used again. 
  632.  
  633. rxfuncdrop(rexxbase_opendbf,Rexxbase,"Rexxbase_OpenDBF") 
  634.  
  635. Return codes most likely to be returned are: 
  636.  
  637. o  0 - OK. 
  638. o  40 - function not found. 
  639.  
  640. For more information about return codes from Rexx, refer to the IBM 
  641. documentation. 
  642.  
  643.  
  644. ΓòÉΓòÉΓòÉ 4. The RexxBase Functions. ΓòÉΓòÉΓòÉ
  645.  
  646. This release of RexxBase offers several functions to read, write and update 
  647. your database records.  Also available are functions to create database, modify 
  648. database structures and to sort databases. 
  649.  
  650.  
  651. ΓòÉΓòÉΓòÉ 4.1. General Database Processing Functions. ΓòÉΓòÉΓòÉ
  652.  
  653. The following are considered general functions.  These functions allow you to 
  654. open, read, write, update, move within, and close database files. 
  655.  
  656.  
  657. ΓòÉΓòÉΓòÉ 4.1.1. Rexxbase_OpenDBF. ΓòÉΓòÉΓòÉ
  658.  
  659. Description.  Prior to processing a database file, the file must be opened. 
  660. When your procedure opens the database file several activities occur. 
  661.  
  662. o The database file is opened. 
  663. o RexxBase creates database related stem variable concerning system and file 
  664.   status. 
  665. o RexxBase creates a stem variable containing field names, types and sizes. 
  666. o If indexes are specified then these files are opened. 
  667.  
  668. Purpose. 
  669.  
  670. To open the database for processing. 
  671.  
  672. Format. 
  673.  
  674. rexxbase_opendbf('dbfname'[,'TAG=tagfieldname'index1|[,index2[,..]]]) 
  675.  
  676. Parameters. 
  677.  
  678. dbfname 
  679.           The REXX variable contains the name of your database as it is known 
  680.           to the operating system. 
  681. TAG='tagfieldname' 
  682.           If the DBF has an associated MDX file you can open the DBF and 
  683.           specify which TAG to be used as an index. Due to the interpretive 
  684.           nature of REXX, place this option in quotes. Otherwise REXX will 
  685.           interpret it as a logical statement and replace with either 1(TRUE) 
  686.           or 0(FALSE). THIS IS AN OPTIONAL PARAMETER AND MUST BE SPECIFIED 
  687.           IMMEDIATELY AFTER THE DBF OPTION. 
  688. index1 
  689.           The master index file name as it is known to the operating system. 
  690.           Unlike the dbfname, which is the REXX variable name passed within 
  691.           quotes.  The index file name is the OS/2 filename.  You can use a 
  692.           REXX variable to pass the name, just don't put it in quotes.  THIS IS 
  693.           AN OPTIONAL PARAMETER. 
  694. index2 .. 
  695.           The alternative index file names as they are known to the operating 
  696.           system. Like the master index file name, they are the OS/2 filenames. 
  697.           You can use a REXX variable to pass the name, just don't put it in 
  698.           quotes.  THIS IS AN OPTIONAL PARAMETER. 
  699.  
  700. You must set the database name in the variable prior to use.  And you must pass 
  701. the variable name in a string.  For example. 
  702.  
  703. myfilename = 'c:\xbase\machines.dbf'
  704. ret = rexxbase_opendbf('myfilename')
  705.  
  706. Return Value  Description 
  707.  
  708. ''. 
  709.           Normal 
  710.  
  711. No REXX DBF Name Specified 
  712.           The first parameter of function call is missing. 
  713.  
  714. Bad Variable Name 
  715.           The variable name passed to the routine is not valid 
  716.  
  717. No File Name Assigned To Variable. 
  718.           The variable was not assigned a value. 
  719.  
  720. Database Name Already In Use. 
  721.           The name passed is already assigned to another opened database. 
  722.  
  723. Can't Open. 
  724.           Operating System error.  File and system errors are written to the 
  725.           console, printer or  rexxbase.error  stem variable. 
  726.  
  727. Missing Index Filename, Database Is Open. 
  728.           The MDX file switch is set in the database control block, but the 
  729.           associated MDX file can not be found. 
  730.  
  731. Can't Open Index, Database File Opened. 
  732.           The RexxBase could not open any one of the index files specified. 
  733.           Depending on which file failed, any index files specified after it 
  734.           will not be opened. 
  735.  
  736. Database Tied To A Join 
  737.           The database is already in use by the RexxBase_JoinDBF function. (See 
  738.           registered user functions.) 
  739.  
  740. Missing Index Tag Name,  Database is open. 
  741.           Tag was used as second parameter but no tag field name was found. 
  742.  
  743. No Index Tag File Opened,  Database is open. 
  744.           The DBF does not have an associated MDX file. 
  745.  
  746. Tag Index File Has No Tags,  Database is open. 
  747.           The MDX file has no tags defined 
  748.  
  749. Index Tag Name Not Found,  Database is open. 
  750.           The tag field name used in the second parameter was not found in the 
  751.           tag field list of the MDX. 
  752.  
  753.  For multi-user access refer to the following RexxBase variable: 
  754.  
  755. o Rexxbase.Read 
  756.  
  757. o Rexxbase.Write 
  758.  
  759. o Rexxbase.Share 
  760.  
  761. Sample Without An Index File 
  762.  
  763. /* REXX */
  764. dbf = 'c:\users\net.dbf'
  765. ret = rexxbase_opendbf('dbf')
  766. if ret \= '' then do
  767.    say ret
  768.    exit
  769.  end
  770.  
  771. Sample With An Index File 
  772.  
  773. /* REXX */
  774. dbf = 'c:\users\net.dbf'
  775. ret = rexxbase_opendbf('dbf','c:\users\net.ndx')
  776. if ret \= '' then do
  777.   say ret
  778.   exit
  779. end
  780.  
  781. Sample With A TAG 
  782.  
  783. /* REXX */
  784. dbf = 'c:\users\net.dbf'
  785. ret = rexxbase_opendbf('dbf','TAG=NETNAME')
  786. if ret \= '' then do
  787.   say ret
  788.   exit
  789. end
  790.  
  791.  
  792. ΓòÉΓòÉΓòÉ 4.1.2. Rexxbase_CloseDBF. ΓòÉΓòÉΓòÉ
  793.  
  794. Description.  When your procedure is done using the database file it should be 
  795. closed.  This allows your program to update the file correctly. 
  796.  
  797. Purpose. 
  798.  
  799. To close the database. 
  800.  
  801. Format. 
  802.  
  803. rexxbase_closedbf('dbfname') 
  804.  
  805. Parameters. 
  806.  
  807. dbfname 
  808.           The REXX variable contains the name of your database as you defined 
  809.           it in the Rexxbase_OpenDBF function. 
  810.  
  811. The name of the database is defined in a REXX variable.  You must pass the 
  812. variable name in a string.  For example. 
  813.  
  814. myfilename = 'c:\xbase\machines.dbf'
  815. ret = rexxbase_closedbf('myfilename')
  816.  
  817. Return Value  Description 
  818.  
  819. ''. 
  820.           Normal 
  821.  
  822. No REXX DBF name Specified 
  823.           The first parameter of function call is missing. 
  824.  
  825. Unknown Database Name. 
  826.           The name found, in the passed parameter, is not the same used to open 
  827.           a database. 
  828.  
  829. Database Tied To A Join 
  830.           The database is already in use by the RexxBase_JoinDBF function. (See 
  831.           registered user functions.) 
  832.  
  833. Sample. 
  834.  
  835. /* REXX */
  836. dbf = 'c:\users\net.dbf'
  837. ret = rexxbase_opendbf('dbf')
  838. if ret \= '' then do
  839.    say ret
  840.    exit
  841.  end
  842. ret = rexxbase_closedbf('dbf')
  843. if ret \= '' then do
  844.   say ret
  845.   exit
  846.  end
  847. say the number of dbf record(s) are dbf.recordcount
  848.  
  849. Trick. Since the REXX environment is an integral part of the operating system 
  850. and persistent nature of the REXX variable pool, you will run into trouble if 
  851. you inadvertently leave a database open. One trick to get around this problem 
  852. is to close the DBF before you open it.  If you ignore the return code from 
  853. RexxBase your program will continue to operate as normal. 
  854.  
  855.  
  856. ΓòÉΓòÉΓòÉ 4.1.3. Rexxbase_CloseAllDBF. ΓòÉΓòÉΓòÉ
  857.  
  858. Description.  When your procedure is done using all of the database files they 
  859. should be closed.  This allows your program to update the files correctly. 
  860.  
  861. Purpose. 
  862.  
  863. To close all opened databases. 
  864.  
  865. Format. 
  866.  
  867. rexxbase_closealldbf() 
  868.  
  869. Parameters. 
  870.  
  871. N/A 
  872.           N/A 
  873.  
  874. The function does not use any parameters. For example, 
  875.  
  876. rexxbase_closealldbf()
  877.  
  878. Return Value  Description 
  879.  
  880. ''. 
  881.           Normal 
  882.  
  883. Even though there are no other return values.  The internal processing errors 
  884. may be found in the  rexxbase.error  stem variable. 
  885.  
  886. Sample. 
  887.  
  888. /* REXX */
  889. dbf = 'c:\users\net.dbf'
  890. ret = rexxbase_opendbf('dbf')
  891. if ret \= '' then do
  892.   say ret
  893.   exit
  894.  end
  895. dbf2 = 'c:\users\addr.dbf'
  896. ret = rexxbase_opendbf('dbf2',addr.ndx)
  897. if ret \= '' then do
  898.   say ret
  899.   exit
  900.  end
  901. ret = rexxbase_closealldbf)
  902. if ret \=''  then do
  903.   say ret
  904.   exit
  905.  end
  906.  
  907.  
  908. ΓòÉΓòÉΓòÉ 4.1.4. Rexxbase_ReadDBF. ΓòÉΓòÉΓòÉ
  909.  
  910. Description.  Read the database fields into the REXX variables.  This commands 
  911. reads the next record in the file. 
  912.  
  913. Purpose. 
  914.  
  915. To read the next sequential record in the database. 
  916.  
  917. If the database was opened with an index, then the next record in the index 
  918. list is read. 
  919.  
  920. Format. 
  921.  
  922. rexxbase_readdbf('dbfname') 
  923.  
  924. Parameters. 
  925.  
  926. dbfname 
  927.           The REXX variable contains the name of your database as you defined 
  928.           it in the Rexxbase_OpenDBF function. 
  929.  
  930. This function can avoid reading deleted records by setting 
  931. Rexxbase.SkipDeleted. 
  932.  
  933. The name of the database is defined in a REXX variable.  You must pass the 
  934. variable name in a string.  For example. 
  935.  
  936. /* REXX */
  937. myfilename = 'c:\xbase\machines.dbf'
  938. rexxbase_readdbf('myfilename')
  939.  
  940. Return Value  Description 
  941.  
  942. ''. 
  943.           Normal 
  944.  
  945. No REXX DBF Name Specified 
  946.           The first parameter of function call is missing. 
  947.  
  948. BOF. 
  949.           End of file condition.  No record is read.  Record field values 
  950.           remain unchanged. 
  951.  
  952. Unknown Database Name. 
  953.           The name found in the passed parameter is not the same used to open 
  954.           the database. 
  955.  
  956. Internal File Processing Error. 
  957.           Record area could not be read. Find the XX error code in the 
  958.           rexxbase.error  stem variable. Where XX is a return code from OS/2. 
  959.           If XX is equal to 5 then the operating system is denying access to 
  960.           that area.  If XX is equal to 33 then the record area has been 
  961.           locked.  For other values you can type on the command line 'HELP XX' 
  962.           to find the values for XX. 
  963.  
  964. Record Locked 
  965.           The file has been locked by another process. 
  966.  
  967. Database Tied To A Join 
  968.           The database is already in use by the RexxBase_JoinDBF function. (See 
  969.           registered user functions.) 
  970.  
  971. Sample. 
  972.  
  973. /* REXX */
  974. dbf = 'c:\users\net.dbf'
  975. ret = rexxbase_opendbf('dbf')
  976. if ret \= '' then do
  977.   say ret
  978.   exit
  979.  end
  980. ret = rexxbase_readdbf('dbf')
  981. if ret = BOF then do
  982.   say end of file reached
  983.  end
  984.  
  985.  
  986. ΓòÉΓòÉΓòÉ 4.1.5. Rexxbase_ReadPrevDBF. ΓòÉΓòÉΓòÉ
  987.  
  988. Description.  Read the database fields into the REXX variables.  This commands 
  989. reads the previous record in the file. 
  990.  
  991. Purpose. 
  992.  
  993. To read the previous sequential record in the database. 
  994.  
  995. If the database was opened with an index, then the previous record in the index 
  996. list is read. 
  997.  
  998. Format. 
  999.  
  1000. rexxbase_readprevdbf('dbfname') 
  1001.  
  1002. Parameters. 
  1003.  
  1004. dbfname 
  1005.           The REXX variable contains the name of your database as you defined 
  1006.           it in the Rexxbase_OpenDBF function. 
  1007.  
  1008. This function can avoid reading deleted records by setting 
  1009. Rexxbase.SkipDeleted. 
  1010.  
  1011. The name of the database is defined in a REXX variable.  You must pass the 
  1012. variable name in a string.  For example. 
  1013.  
  1014. myfilename = 'c:\xbase\machines.dbf'
  1015. rexxbase_readprevdbf('myfilename')
  1016.  
  1017. Return Value  Description 
  1018.  
  1019. ''. 
  1020.           Normal 
  1021.  
  1022. No REXX DBF Name Specified 
  1023.           The first parameter of function call is missing. 
  1024.  
  1025. Unknown Database Name. 
  1026.           The name found in the passed parameter is not the same used to open 
  1027.           the database. 
  1028.  
  1029. Internal File Processing Error 
  1030.           Record area could not be read. Find the XX error code in the 
  1031.           rexxbase.error  stem variable. Where XX is a return code from OS/2. 
  1032.           If XX is equal to 5 then the operating system is denying access to 
  1033.           that area.  If XX is equal to 33 then the record area has been 
  1034.           locked.  For other values you can type on the command line 'HELP XX' 
  1035.           to find the values for XX. 
  1036.  
  1037. TOF. 
  1038.           Top of file condition.  No record is read.  Record field values 
  1039.           remain unchanged. 
  1040.  
  1041. Record Locked 
  1042.           The file has been locked by another process. 
  1043.  
  1044. Database Tied To A Join 
  1045.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1046.           registered user functions.) 
  1047.  
  1048. Sample. 
  1049.  
  1050. /* Read the 10th and 9th records*/
  1051. dbf = 'c:\users\net.dbf'
  1052. ret = rexxbase_opendbf('dbf')
  1053. if ret \= '' then do
  1054.   say ret
  1055.   exit
  1056.  end ret =
  1057. rexxbase_gotorecord('dbf',10)
  1058. ret = rexxbase_readprevdbf('dbf')
  1059. ret = rexxbase_closedbf('dbf')
  1060.  
  1061. Trick. 
  1062.  
  1063. If you must have reverse indexes, open the database with the intended index, go 
  1064. to the BOTTOM of the database and readprev until TOF. 
  1065.  
  1066.  
  1067. ΓòÉΓòÉΓòÉ 4.1.6. Rexxbase_GoToRecord. ΓòÉΓòÉΓòÉ
  1068.  
  1069. Description.  The command will position at a specified record and read it. 
  1070.  
  1071. Purpose. 
  1072.  
  1073. To read a particular record in the database. 
  1074.  
  1075. Format. 
  1076.  
  1077. rexxbase_gotorecord('dbfname',recordnumber) 
  1078.  
  1079. Parameters. 
  1080.  
  1081. dbfname 
  1082.           The REXX variable contains the name of your database as you defined 
  1083.           it in the Rexxbase_OpenDBF function. 
  1084. recordnumber 
  1085.           The record number to read, or the following words 
  1086.  
  1087.            TOP - to go to the top of the database. 
  1088.  
  1089.            BOT or BOTTOM - to go to the bottom of the database. 
  1090.  
  1091. This function can avoid reading deleted records by setting 
  1092. Rexxbase.SkipDeleted. 
  1093.  
  1094. The name of the database is defined in a REXX variable.  You must pass the 
  1095. variable name in a string.  For example. 
  1096.  
  1097. myfilename = 'c:\xbase\machines.dbf'
  1098. rexxbase_gotorecord('myfilename',1)
  1099.  
  1100. Return Value  Description 
  1101.  
  1102. ''. 
  1103.           Normal 
  1104.  
  1105. No REXX DBF Name Specified 
  1106.           The first parameter of function call is missing. 
  1107.  
  1108. No Record Number Specified. 
  1109.           You did not pass a record number in the second argument. 
  1110.  
  1111. Unknown Database Name. 
  1112.           The name found in the passed parameter is not the same used to open 
  1113.           the database. 
  1114.  
  1115. Bad Record Number. 
  1116.           You passed a record number that is invalid or is less than one.  No 
  1117.           record is read. 
  1118.  
  1119. BOF. 
  1120.           You passed a record number that is greater than the number on the 
  1121.           file or used the BOT or BOTTOM option.  No record is read.  Record 
  1122.           field values remain unchanged. BOF is a good return code if you used 
  1123.           the BOT or BOTTOM option. 
  1124.  
  1125. TOF. 
  1126.           You used the TOP option in the record number field.  This is a good 
  1127.           return code. 
  1128.  
  1129. Record Locked 
  1130.           The file has been locked by another process. 
  1131.  
  1132. Database Tied To A Join 
  1133.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1134.           registered user functions.) 
  1135.  
  1136. Sample. 
  1137.  
  1138. /* REXX */
  1139. /* assume the database has a field name AMOUNT.  */
  1140. /* this example will get the last AMOUNT on file*/
  1141. dbf = 'c:\users\net.dbf'
  1142. ret = rexxbase_opendbf('dbf')
  1143. if ret \= '' then do
  1144.   say ret
  1145.   exit
  1146.  end
  1147. ret = rexxbase_gotorecord('dbf',dbf.recordcount)
  1148. if ret = '' then say dbf.amount
  1149. ret = rexxbase_closedbf('dbf')
  1150.  
  1151.  
  1152. ΓòÉΓòÉΓòÉ 4.1.7. Rexxbase_WriteDBF. ΓòÉΓòÉΓòÉ
  1153.  
  1154. Description.  This will add a new record to the end of the database. 
  1155.  
  1156. Purpose. 
  1157.  
  1158. To add records to the database. 
  1159.  
  1160. Format. 
  1161.  
  1162. rexxbase_writedbf('dbfname') 
  1163.  
  1164. Parameters. 
  1165.  
  1166. dbfname 
  1167.           The REXX variable contains the name of your database as you defined 
  1168.           it in the Rexxbase_OpenDBF function. 
  1169.  
  1170. The name of the database is defined in a REXX variable.  You must pass the 
  1171. variable name in a string.  For example. 
  1172.  
  1173. /* */
  1174. myfilename = 'c:\xbase\machines.dbf'
  1175. ret = rexxbase_opendbf('myfilename')
  1176. rexxbase_writedbf('myfilename')
  1177. ret = rexxbase_closedbf('myfilename')
  1178.  
  1179. Return Value  Description 
  1180.  
  1181. ''. 
  1182.           Normal 
  1183.  
  1184. No REXX DBF Name Specified 
  1185.           The first parameter of function call is missing. 
  1186.  
  1187. Unknown Database Name. 
  1188.           The name found in the passed parameter is not the same used to open 
  1189.           the database. 
  1190.  
  1191. Record With Duplicate Key Not Written 
  1192.           The control variable RexxBase.AllowDuplicatesIndexes has been set to 
  1193.           NO.  A  matching index has been found.  Therefore, the record was 
  1194.           written to the DBF file.  Remember, deleted records do not have their 
  1195.           index entries removed until the database has been packed.  Also, do 
  1196.           not confuse this with the control variable RexxBase.Unique, which 
  1197.           allows all records to be written to the database but prevents a 
  1198.           duplicate index entry from being created. See 
  1199.           Rexxbase.AllowDuplicateIndexes. 
  1200.  
  1201. Database Tied To A Join 
  1202.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1203.           registered user functions.) 
  1204.  
  1205. Sample. 
  1206.  
  1207. /* REXX */
  1208. /* this example copies the first record of the database to the end */
  1209. dbf = 'c:\users\net.dbf'
  1210. ret = rexxbase_opendbf('dbf')
  1211. if ret \= '' then do
  1212.   say ret
  1213.   exit
  1214.  end
  1215. ret = rexxbase_readdbf('dbf')
  1216. if ret \= '' then do
  1217.   say read failed with ret
  1218.   exit
  1219.  end
  1220. ret = rexxbase_writedbf('dbf')
  1221. if ret \  = '' then do
  1222.   say write failed with ret
  1223.   exit
  1224.  end
  1225. ret = rexxbase_closedbf('dbf')
  1226. if ret \  = '' then do
  1227.   say close failed with ret
  1228.   exit
  1229.  end
  1230.  
  1231.  
  1232. ΓòÉΓòÉΓòÉ 4.1.8. Rexxbase_UpdateDBF. ΓòÉΓòÉΓòÉ
  1233.  
  1234. Description.  This function will rewrite data at the current record position. 
  1235.  
  1236. Purpose. 
  1237.  
  1238. To update a record. 
  1239.  
  1240. Format. 
  1241.  
  1242. rexxbase_updatedbf('dbfname') 
  1243.  
  1244. Parameters. 
  1245.  
  1246. dbfname 
  1247.           The REXX variable contains the name of your database as you defined 
  1248.           it in the Rexxbase_OpenDBF function. 
  1249.  
  1250. The name of the database is defined in a REXX variable.  You must pass the 
  1251. variable name in a string.  For example. 
  1252.  
  1253. myfilename = 'c:\xbase\machines.dbf' ret =
  1254. rexxbase_updatedbf('myfilename')
  1255.  
  1256. Return Value  Description 
  1257.  
  1258. ''. 
  1259.           Normal 
  1260.  
  1261. No REXX DBF Name Specified 
  1262.           The first parameter of function call is missing. 
  1263.  
  1264. Unknown Database Name. 
  1265.           The name found in the passed parameter is not the same used to open 
  1266.           the database. 
  1267.  
  1268. Invalid Record Position 
  1269.           The current record pointer is either at TOF or BOF. It is not 
  1270.           pointing to any particular record. 
  1271.  
  1272. Record With Duplicate Key Not Updated 
  1273.           The control variable RexxBase.AllowDuplicatesIndexes has been set to 
  1274.           NO.  A  matching index has been found.  Therefore, the record was 
  1275.           written to the DBF file.  Remember, deleted records do not have their 
  1276.           index entries removed until the database has been packed.  Also, do 
  1277.           not confuse this with the control variable RexxBase.Unique, which 
  1278.           allows all records to be written to the database but prevents a 
  1279.           duplicate index entry from being created. See 
  1280.           Rexxbase.AllowDuplicateIndexes. 
  1281.  
  1282. Database Tied To A Join 
  1283.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1284.           registered user functions.) 
  1285.  
  1286. Sample. 
  1287.  
  1288. /* REXX */
  1289. /* this example update the field AMOUNT on the first record of the database*/
  1290. dbf = 'c:\users\net.dbf'
  1291. ret = rexxbase_opendbf('dbf')
  1292. if ret \= '' then do
  1293.   say ret
  1294.   exit
  1295.  end
  1296. ret = rexxbase_readdbf('dbf')
  1297. if ret \= '' then do
  1298.   say read failed with ret
  1299.   exit
  1300.  end
  1301. dbf.AMOUNT = dbf.AMOUNT * 2
  1302. ret = rexxbase_updatedbf('dbf')
  1303. if ret \  = '' then do
  1304.   say update failed with ret
  1305.   exit
  1306.  end
  1307. ret = rexxbase_closedbf('dbf')
  1308. if ret \  = '' then do
  1309.   say close failed with ret
  1310.   exit
  1311.  end
  1312.  
  1313.  
  1314. ΓòÉΓòÉΓòÉ 4.2. Create and Modify Database Functions. ΓòÉΓòÉΓòÉ
  1315.  
  1316. The following functions allow you to create new or modify existing databases. 
  1317.  
  1318.  
  1319. ΓòÉΓòÉΓòÉ 4.2.1. Rexxbase_CreateDBF ΓòÉΓòÉΓòÉ
  1320.  
  1321. Description.  This will create a new database file. 
  1322.  
  1323. If the file is created with the RexxBase.dBaseFileFormat set to 'dbase4' a MDX 
  1324. file is created. 
  1325.  
  1326. Prior to calling the RexxBase Create function you must specify the fields and 
  1327. the characteristics for each field.  You do this by creating field names using 
  1328. the database variable name concatenated with the FIELD string. 
  1329.  
  1330. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1331. ΓöéDatabase  Γöé*.FIELDCOUNT   ΓöéThe number of  Γöé               Γöé          Γöé
  1332. ΓöéField     Γöé               Γöéfields to be   Γöé               Γöé          Γöé
  1333. ΓöéCount     Γöé               Γöéused for       Γöé               Γöé          Γöé
  1334. Γöé          Γöé               Γöécreating the   Γöé               Γöé          Γöé
  1335. Γöé          Γöé               Γöédatabase.      Γöé               Γöé          Γöé
  1336. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1337. ΓöéField NameΓöé*.FIELDNAME.1  ΓöéThe first fieldΓöéAny valid dBaseΓöé          Γöé
  1338. Γöé1         Γöé               Γöéname.          Γöéfield name.    Γöé          Γöé
  1339. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1340. Γöé*.'field  ΓöéThe first fieldΓöéSpecify C for  Γöé               Γöé          Γöé
  1341. Γöéname      Γöétype           Γöécharacter, L   Γöé               Γöé          Γöé
  1342. Γöé1'.TYPE   Γöé               Γöéfor Logical, M Γöé               Γöé          Γöé
  1343. Γöé          Γöé               Γöéfor Memo, N forΓöé               Γöé          Γöé
  1344. Γöé          Γöé               ΓöéNumeric and D  Γöé               Γöé          Γöé
  1345. Γöé          Γöé               Γöéfor date.  Any Γöé               Γöé          Γöé
  1346. Γöé          Γöé               Γöéother value    Γöé               Γöé          Γöé
  1347. Γöé          Γöé               Γöéwill cause the Γöé               Γöé          Γöé
  1348. Γöé          Γöé               Γöécreate functionΓöé               Γöé          Γöé
  1349. Γöé          Γöé               Γöéto fail.       Γöé               Γöé          Γöé
  1350. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1351. Γöé*.'field  ΓöéThe first fieldΓöéSpecify the    Γöé               Γöé          Γöé
  1352. Γöéname      Γöésize or length.Γöéfield length.  Γöé               Γöé          Γöé
  1353. Γöé1'.LENGTH Γöé               ΓöéFor Logical,   Γöé               Γöé          Γöé
  1354. Γöé          Γöé               ΓöéMemo and Date  Γöé               Γöé          Γöé
  1355. Γöé          Γöé               Γöéfield the size Γöé               Γöé          Γöé
  1356. Γöé          Γöé               Γöéfield is       Γöé               Γöé          Γöé
  1357. Γöé          Γöé               Γöéignored and    Γöé               Γöé          Γöé
  1358. Γöé          Γöé               ΓöéRexxBase uses  Γöé               Γöé          Γöé
  1359. Γöé          Γöé               Γöéthe default    Γöé               Γöé          Γöé
  1360. Γöé          Γöé               Γöévalues.  For   Γöé               Γöé          Γöé
  1361. Γöé          Γöé               ΓöéCharacter      Γöé               Γöé          Γöé
  1362. Γöé          Γöé               Γöéfields specify Γöé               Γöé          Γöé
  1363. Γöé          Γöé               Γöéa value from 1 Γöé               Γöé          Γöé
  1364. Γöé          Γöé               Γöéto 254.  For   Γöé               Γöé          Γöé
  1365. Γöé          Γöé               ΓöéNumeric fields Γöé               Γöé          Γöé
  1366. Γöé          Γöé               Γöéspecify the    Γöé               Γöé          Γöé
  1367. Γöé          Γöé               Γöélength in the  Γöé               Γöé          Γöé
  1368. Γöé          Γöé               Γöéformat of      Γöé               Γöé          Γöé
  1369. Γöé          Γöé               Γöélength.decimal,Γöé               Γöé          Γöé
  1370. Γöé          Γöé               Γöéwhere length isΓöé               Γöé          Γöé
  1371. Γöé          Γöé               Γöéa value from 1 Γöé               Γöé          Γöé
  1372. Γöé          Γöé               Γöéto 19 and      Γöé               Γöé          Γöé
  1373. Γöé          Γöé               Γöédecimal (no of Γöé               Γöé          Γöé
  1374. Γöé          Γöé               Γöédecimal        Γöé               Γöé          Γöé
  1375. Γöé          Γöé               Γöépositions) is 0Γöé               Γöé          Γöé
  1376. Γöé          Γöé               Γöéto 9 (one less Γöé               Γöé          Γöé
  1377. Γöé          Γöé               Γöéthan the       Γöé               Γöé          Γöé
  1378. Γöé          Γöé               Γöélength).       Γöé               Γöé          Γöé
  1379. Γöé          Γöé               ΓöéNumeric        Γöé               Γöé          Γöé
  1380. Γöé          Γöé               Γöéaccuracy is    Γöé               Γöé          Γöé
  1381. Γöé          Γöé               Γöévalid to 15    Γöé               Γöé          Γöé
  1382. Γöé          Γöé               Γöéinteger digits Γöé               Γöé          Γöé
  1383. Γöé          Γöé               Γöéand 9 decimal  Γöé               Γöé          Γöé
  1384. Γöé          Γöé               Γöéplaces.        Γöé               Γöé          Γöé
  1385. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1386. Γöé.         Γöé.              Γöé               Γöé               Γöé          Γöé
  1387. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1388. ΓöéField n   Γöé*.FIELDNAME.n  ΓöéThe last field Γöé               Γöé          Γöé
  1389. Γöé          Γöé               Γöéin the         Γöé               Γöé          Γöé
  1390. Γöé          Γöé               Γöédatabase.  The Γöé               Γöé          Γöé
  1391. Γöé          Γöé               Γöévalue of n     Γöé               Γöé          Γöé
  1392. Γöé          Γöé               Γöéshould be equalΓöé               Γöé          Γöé
  1393. Γöé          Γöé               Γöéto the value   Γöé               Γöé          Γöé
  1394. Γöé          Γöé               Γöéspecified in   Γöé               Γöé          Γöé
  1395. Γöé          Γöé               Γöédbname.FIELDCOUΓöé               Γöé          Γöé
  1396. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1397.  
  1398. Purpose. 
  1399.  
  1400. To create a database. 
  1401.  
  1402. Format. 
  1403.  
  1404. rexxbase_createdbf('dbfname') 
  1405.  
  1406. Parameters. 
  1407.  
  1408. dbfname 
  1409.           The REXX variable contains the name of the database similar in 
  1410.           function to the database field in the Rexxbase_OpenDBF function. 
  1411.  
  1412. The name of the database is defined in a REXX variable.  You must pass the 
  1413. variable name in a string.  For example. 
  1414.  
  1415. myfilename = 'c:\xbase\newmachn.dbf'
  1416. rexxbase_createdbf('myfilename')
  1417.  
  1418. Return Value  Description 
  1419.  
  1420. ''. 
  1421.           Normal 
  1422.  
  1423. No REXX DBF Name Specified 
  1424.           The first parameter of function call is missing. 
  1425.  
  1426. Bad Variable Name 
  1427.           Variable used to pass database name is not a valid REXX variable 
  1428.           name. 
  1429.  
  1430. No Filename Assigned To Variable. 
  1431.           Variable used to pass database name is empty or unassigned. 
  1432.  
  1433. Database name Already In Use. 
  1434.           Database name passed is already in use. 
  1435.  
  1436. Create Failed 
  1437.           refer to the following: 
  1438.  
  1439.           Unknown Field Type 
  1440.  
  1441.           Use C, D, L, M, and N only for field types. 
  1442.  
  1443.           Invalid field size 
  1444.  
  1445.           For character fields use a size from 1 through 249.  For numeric 
  1446.           fields use a size of specification of xx.yy where xx is a value from 
  1447.           1 to 19 and yy is from 0 to 9 and yy is one less than xx.  All other 
  1448.           field type length specifications default to:  8 for D, 1 for L and 10 
  1449.           for M. 
  1450.  
  1451.           Too many fields. 
  1452.  
  1453.           Only 128 fields are allowed per database. 
  1454.  
  1455.           Record size too large 
  1456.  
  1457.           Records sizes are limited to 4000 bytes. 
  1458.  
  1459. To prevent unwanted destruction of a database file refer to the RexxBase 
  1460. variable Rexxbase.Safety 
  1461.  
  1462. Sample. 
  1463.  
  1464. /* REXX */
  1465. dbf.fieldcount = 4
  1466. dbf.fieldname.1 = location
  1467. dbf.location.type = 'c'
  1468. dbf.location.length = '10'
  1469. dbf.fieldname.2 = inuse
  1470. dbf.inuse.type = 'l'
  1471. dbf.fieldname.3 = startuse
  1472. dbf.startuse.type = 'd'
  1473. dbf.fieldname.4 = prchcost
  1474. dbf.prchcost.type = 'n'
  1475. dbf.prchcost.length = '9.2'
  1476. ret = rexxbase_createdbf('dbf')
  1477.  
  1478.  
  1479. ΓòÉΓòÉΓòÉ 4.2.2. Rexxbase_CreateFromDBF ΓòÉΓòÉΓòÉ
  1480.  
  1481. Description.  This will create a new database file structure only.  No data is 
  1482. added to the file.  No structure modifications may be made. 
  1483.  
  1484. Purpose. 
  1485.  
  1486. To create a database structure. 
  1487.  
  1488. Format. 
  1489.  
  1490. rexxbase_createfromdbf('dbfname','newdbfname') 
  1491.  
  1492. Parameters. 
  1493.  
  1494. dbfname 
  1495.           The REXX variable contains the name of the database similar in 
  1496.           function to the database field in the Rexxbase_OpenDBF function. 
  1497. newdbfname 
  1498.           The REXX variable contains the name of the new database. 
  1499.  
  1500. The name of the database is defined in a REXX variable.  You must pass the 
  1501. variable name in a string.  For example. 
  1502.  
  1503. oldfilename = 'c:\xbase\machn.dbf'
  1504. newfilename ='c:\xbase\newmachn.dbf'
  1505. rexxbase_createfromdbf('oldfilename','newfilename')
  1506.  
  1507. Return Value  Description 
  1508.  
  1509. ''. 
  1510.           Normal 
  1511.  
  1512. No REXX DBF Name Specified 
  1513.           The first parameter of function call is missing. 
  1514.  
  1515. Unknown Database Name. 
  1516.           The name found in the passed parameter is not the same used to open 
  1517.           the database. 
  1518.  
  1519. No DBF Name To Copy Structure To 
  1520.           This functions expects a second parameter which contains the name of 
  1521.           the file to be created. 
  1522.  
  1523. Bad Variable Name 
  1524.           Variable used to pass database name is not a valid REXX variable 
  1525.           name. 
  1526.  
  1527. No Filename Assigned To Variable. 
  1528.           Variable used to pass database name is empty or unassigned. 
  1529.  
  1530. Database Name Already In Use. 
  1531.           Database name passed is already in use. 
  1532.  
  1533. CreateFrom Failed 
  1534.           Refer to the  rexxbase.error  stem variable.: 
  1535.  
  1536. To prevent unwanted destruction of a database file refer to the RexxBase 
  1537. variable Rexxbase.Safety 
  1538.  
  1539. Sample. 
  1540.  
  1541. /* REXX */
  1542. parse arg olddbf newdbf
  1543. ret = rexxbase_opendbf('olddbf')
  1544. ret = rexxbase_createfromdbf('olddbf','newdbf')
  1545.  
  1546.  
  1547. ΓòÉΓòÉΓòÉ 4.2.3. Rexxbase_ModifyDBF ΓòÉΓòÉΓòÉ
  1548.  
  1549. Description.  This will modify the structure of a database file that is 
  1550. currently open. 
  1551.  
  1552. When a database is opened the database fields descriptions are loaded into REXX 
  1553. Variables.  By changing the values in these REXX variables you can alter the 
  1554. characteristics of a database field, remove a database field and add new 
  1555. database fields. 
  1556.  
  1557. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  1558. ΓöéDatabase  Γöé*.FIELDCOUNT   ΓöéThe number of  Γöé               Γöé
  1559. ΓöéField     Γöé               Γöéfields in the  Γöé               Γöé
  1560. ΓöéCount     Γöé               Γöédatabase.      Γöé               Γöé
  1561. Γöé          Γöé               ΓöéIncrease the   Γöé               Γöé
  1562. Γöé          Γöé               Γöécount of this  Γöé               Γöé
  1563. Γöé          Γöé               Γöéfield when     Γöé               Γöé
  1564. Γöé          Γöé               Γöéadding new     Γöé               Γöé
  1565. Γöé          Γöé               Γöérecords.  If   Γöé               Γöé
  1566. Γöé          Γöé               Γöéyou decrease   Γöé               Γöé
  1567. Γöé          Γöé               Γöéthe count, the Γöé               Γöé
  1568. Γöé          Γöé               Γöétrailing fieldsΓöé               Γöé
  1569. Γöé          Γöé               Γöéwill be        Γöé               Γöé
  1570. Γöé          Γöé               Γöéremoved.  To   Γöé               Γöé
  1571. Γöé          Γöé               Γöéremove fields  Γöé               Γöé
  1572. Γöé          Γöé               Γöéin the         Γöé               Γöé
  1573. Γöé          Γöé               Γöébeginning and  Γöé               Γöé
  1574. Γöé          Γöé               Γöéthe middle of  Γöé               Γöé
  1575. Γöé          Γöé               Γöéthe field      Γöé               Γöé
  1576. Γöé          Γöé               Γöéchange the     Γöé               Γöé
  1577. Γöé          Γöé               Γöéfield type 'P'.Γöé               Γöé
  1578. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1579. ΓöéField NameΓöé*.FIELDNAME.1  ΓöéThe first fieldΓöé               Γöé
  1580. Γöé1         Γöé               Γöéname.          Γöé               Γöé
  1581. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1582. Γöé*.'field  ΓöéThe first fieldΓöéSpecify C for  Γöé               Γöé
  1583. Γöéname      Γöétype.          Γöécharacter, L   Γöé               Γöé
  1584. Γöé1'.TYPE   Γöé               Γöéfor Logical, M Γöé               Γöé
  1585. Γöé          Γöé               Γöéfor Memo, N forΓöé               Γöé
  1586. Γöé          Γöé               ΓöéNumeric and D  Γöé               Γöé
  1587. Γöé          Γöé               Γöéfor date.      Γöé               Γöé
  1588. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1589. Γöé*.'field  ΓöéThe first fieldΓöéSpecify the    Γöé               Γöé
  1590. Γöéname      Γöésize or length.Γöéfield length.  Γöé               Γöé
  1591. Γöé1'.LENGTH Γöé               ΓöéFor Logical,   Γöé               Γöé
  1592. Γöé          Γöé               ΓöéMemo and Date  Γöé               Γöé
  1593. Γöé          Γöé               Γöéfield the size Γöé               Γöé
  1594. Γöé          Γöé               Γöéfield is       Γöé               Γöé
  1595. Γöé          Γöé               Γöéignored and    Γöé               Γöé
  1596. Γöé          Γöé               ΓöéRexxBase uses  Γöé               Γöé
  1597. Γöé          Γöé               Γöéthe default    Γöé               Γöé
  1598. Γöé          Γöé               Γöévalues.  For   Γöé               Γöé
  1599. Γöé          Γöé               ΓöéCharacter      Γöé               Γöé
  1600. Γöé          Γöé               Γöéfields specify Γöé               Γöé
  1601. Γöé          Γöé               Γöéa value from 1 Γöé               Γöé
  1602. Γöé          Γöé               Γöéto 254.  For   Γöé               Γöé
  1603. Γöé          Γöé               ΓöéNumeric fields Γöé               Γöé
  1604. Γöé          Γöé               Γöéspecify the    Γöé               Γöé
  1605. Γöé          Γöé               Γöélength in the  Γöé               Γöé
  1606. Γöé          Γöé               Γöéformat of      Γöé               Γöé
  1607. Γöé          Γöé               Γöélength.decimal,Γöé               Γöé
  1608. Γöé          Γöé               Γöéwhere length isΓöé               Γöé
  1609. Γöé          Γöé               Γöéa value from 1 Γöé               Γöé
  1610. Γöé          Γöé               Γöéto 19 and      Γöé               Γöé
  1611. Γöé          Γöé               Γöédecimal (no of Γöé               Γöé
  1612. Γöé          Γöé               Γöédecimal        Γöé               Γöé
  1613. Γöé          Γöé               Γöépositions) is 0Γöé               Γöé
  1614. Γöé          Γöé               Γöéto 9 (one less Γöé               Γöé
  1615. Γöé          Γöé               Γöéthan the       Γöé               Γöé
  1616. Γöé          Γöé               Γöélength).       Γöé               Γöé
  1617. Γöé          Γöé               ΓöéNumeric        Γöé               Γöé
  1618. Γöé          Γöé               Γöéaccuracy is    Γöé               Γöé
  1619. Γöé          Γöé               Γöévalid to 15    Γöé               Γöé
  1620. Γöé          Γöé               Γöéinteger digits Γöé               Γöé
  1621. Γöé          Γöé               Γöéand 9 decimal  Γöé               Γöé
  1622. Γöé          Γöé               Γöéplaces.        Γöé               Γöé
  1623. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1624. Γöé.         Γöé.              Γöé               Γöé               Γöé
  1625. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  1626. ΓöéField n   Γöé*.FIELDNAME.n  ΓöéThe last field Γöé               Γöé
  1627. Γöé          Γöé               Γöéin the         Γöé               Γöé
  1628. Γöé          Γöé               Γöédatabase.  The Γöé               Γöé
  1629. Γöé          Γöé               Γöévalue of n     Γöé               Γöé
  1630. Γöé          Γöé               Γöéshould be equalΓöé               Γöé
  1631. Γöé          Γöé               Γöéto the value   Γöé               Γöé
  1632. Γöé          Γöé               Γöéspecified in   Γöé               Γöé
  1633. Γöé          Γöé               Γöédbname.FIELDCOUΓöé               Γöé
  1634. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  1635.  
  1636. Purpose. 
  1637.  
  1638. To modify a database. 
  1639.  
  1640. Format. 
  1641.  
  1642. rexxbase_modifydbf('dbfname') 
  1643.  
  1644. Parameters. 
  1645.  
  1646. dbfname 
  1647.           The REXX variable contains the name of the database similar in 
  1648.           function to the database field in the Rexxbase_OpenDBF function. 
  1649.  
  1650. The name of the database is defined in a REXX variable.  You must pass the 
  1651. variable name in a string.  For example. 
  1652.  
  1653. myfilename = 'c:\xbase\machn.dbf'
  1654. rexxbase_modifydbf('myfilename')
  1655.  
  1656. Return Value  Description 
  1657.  
  1658. ''. 
  1659.           Normal 
  1660.  
  1661. No REXX DBF Name Specified 
  1662.           The first parameter of function call is missing. 
  1663.  
  1664. Unknown Database Name. 
  1665.           The name found in the passed parameter is not the same used to open 
  1666.           the database. 
  1667.  
  1668. Modify Failed 
  1669.           refer to the following: 
  1670.  
  1671.           Unknown Field Type 
  1672.  
  1673.           Use C, D, L, M, and N only for field types. 
  1674.  
  1675.           Invalid field size 
  1676.  
  1677.           For character fields use a size from 1 through 249.  For numeric 
  1678.           fields use a size of specification of xx.yy where xx is a value from 
  1679.           1 to 19 and yy is from 0 to 9 and yy is one less than xx.  All other 
  1680.           field type length specifications default to:  8 for D, 1 for L and 10 
  1681.           for M. 
  1682.  
  1683.           Too many fields. 
  1684.  
  1685.           Only 128 fields are allowed per database. 
  1686.  
  1687.           Record size too large 
  1688.  
  1689.           Records sizes are limited to 4000 bytes. 
  1690.  
  1691. Database Tied To A Join 
  1692.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1693.           registered user functions.) 
  1694.  
  1695. Sample. 
  1696.  
  1697. /* REXX */
  1698. dbf = 'c:\xbase\newmachn.dbf'
  1699. rexxbase_opendbf('dbf')
  1700. dbf.fieldcount = 4
  1701. dbf.fieldname.1 = location
  1702. dbf.location.type = 'c'
  1703. dbf.location.length = '10'
  1704. dbf.fieldname.2 = inuse
  1705. dbf.inuse.type = 'l'
  1706. dbf.fieldname.3 = startuse
  1707. dbf.startuse.type = 'd'
  1708. dbf.fieldname.4 = prchcost
  1709. dbf.prchcost.type = 'n'
  1710. dbf.prchcost.length = '9.2'
  1711. ret = rexxbase_modifydbf('dbf')
  1712.  
  1713.  
  1714. ΓòÉΓòÉΓòÉ 4.3. Deleting and Packing Databases. ΓòÉΓòÉΓòÉ
  1715.  
  1716. The following function allow your REXX programs to logically delete, undelete 
  1717. and physically remove records from a database. 
  1718.  
  1719.  
  1720. ΓòÉΓòÉΓòÉ 4.3.1. Rexxbase_DeleteRecord. ΓòÉΓòÉΓòÉ
  1721.  
  1722. Description.  Marks the current record as deleted. 
  1723.  
  1724. Purpose. 
  1725.  
  1726. To logically delete a record. 
  1727.  
  1728. Format. 
  1729.  
  1730. rexxbase_deleterecord('dbfname') 
  1731.  
  1732. Parameters. 
  1733.  
  1734. dbfname 
  1735.           The REXX variable contains the name of your database as you defined 
  1736.           it in the Rexxbase_OpenDBF function. 
  1737.  
  1738. The name of the database is defined in a REXX variable.  You must pass the 
  1739. variable name in a string.  For example. 
  1740.  
  1741. ret = rexxbase_deleterecord('myfilename')
  1742.  
  1743. Return Value  Description 
  1744.  
  1745. ''. 
  1746.           Normal 
  1747.  
  1748. No REXX DBF Name Specified 
  1749.           The first parameter of function call is missing. 
  1750.  
  1751. Unknown Database Name. 
  1752.           The name found in the passed parameter is not the same used to open 
  1753.           the database. 
  1754.  
  1755. No Record Read. 
  1756.           The procedure must do a record read before deleting a record. 
  1757.  
  1758. Database Tied To A Join 
  1759.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1760.           registered user functions.) 
  1761.  
  1762. Sample. 
  1763.  
  1764. /* REXX */
  1765. /*mark the last record on file as undeleted */
  1766. dbf = 'c:\users\net.dbf'
  1767. ret = rexxbase_opendbf('dbf')
  1768. if ret \= '' then do
  1769.   say ret
  1770.   exit
  1771.  end
  1772. ret = rexxbase_gotorecord('dbf',dbf.recordcount)
  1773. if ret = '' then ret = rexxbase_deleterecord('dbf')
  1774.  
  1775.  
  1776. ΓòÉΓòÉΓòÉ 4.3.2. Rexxbase_UndeleteRecord. ΓòÉΓòÉΓòÉ
  1777.  
  1778. Description.  Marks the current record as not deleted. 
  1779.  
  1780. Purpose. 
  1781.  
  1782. To logically undelete a record. 
  1783.  
  1784. Format. 
  1785.  
  1786. rexxbase_undeleterecord('dbfname') 
  1787.  
  1788. Parameters. 
  1789.  
  1790. dbfname 
  1791.           The REXX variable contains the name of your database as you defined 
  1792.           it in the Rexxbase_OpenDBF function. 
  1793.  
  1794. The name of the database is defined in a REXX variable.  You must pass the 
  1795. variable name in a string.  For example. 
  1796.  
  1797. rexxbase_undeleterecord('myfilename')
  1798.  
  1799. Return Value  Description 
  1800.  
  1801. ''. 
  1802.           Normal 
  1803.  
  1804. No REXX DBF Name Specified 
  1805.           The first parameter of function call is missing. 
  1806.  
  1807. Unknown Database Name. 
  1808.           The name found in the passed parameter is not the same used to open 
  1809.           the database. 
  1810.  
  1811. No Record Read. 
  1812.           The procedure must do a record read before undeleting a record. 
  1813.  
  1814. Database Tied To A Join 
  1815.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1816.           registered user functions.) 
  1817.  
  1818. Sample. 
  1819.  
  1820. /* REXX */
  1821. /*mark the last record on file as not deleted */
  1822. dbf = 'c:\users\net.dbf'
  1823. ret = rexxbase_opendbf('dbf')
  1824. if ret \= '' then do
  1825.   say ret
  1826.   exit
  1827.  end
  1828. ret =rexxbase_gotorecord('dbf',dbf.recordcount)
  1829. if ret = '' then ret = rexxbase_undeleterecord('dbf')
  1830.  
  1831.  
  1832. ΓòÉΓòÉΓòÉ 4.3.3. Rexxbase_PackDBF. ΓòÉΓòÉΓòÉ
  1833.  
  1834. Description.  This function removes logically deleted records from the 
  1835. database. 
  1836.  
  1837. Purpose. 
  1838.  
  1839. To remove deleted records.  If the file has been opened with indexes, then the 
  1840. index will be rebuilt. 
  1841.  
  1842. If the database has associated index files and they are not opened during the 
  1843. packing process the indexes will be incorrect. 
  1844.  
  1845. Format. 
  1846.  
  1847. rexxbase_packdbf('dbfname') 
  1848.  
  1849. Parameters. 
  1850.  
  1851. dbfname 
  1852.           The REXX variable contains the name of your database as you defined 
  1853.           it in the Rexxbase_OpenDBF function. 
  1854.  
  1855. The name of the database is defined in a REXX variable.  You must pass the 
  1856. variable name in a string.  For example. 
  1857.  
  1858. myfilename = 'c:\xbase\machines.dbf'
  1859. ret = rexxbase_packdbf('myfilename')
  1860.  
  1861. Return Value  Description 
  1862.  
  1863. ''. 
  1864.           Normal 
  1865.  
  1866. No REXX DBF Name Specified 
  1867.           No argument was passed to the routine. 
  1868.  
  1869. Unknown Database Name. 
  1870.           The name found in the passed parameter is not the same used to open 
  1871.           the database. 
  1872.  
  1873. Database Tied To A Join 
  1874.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1875.           registered user functions.) 
  1876.  
  1877. Record With Duplicate Key Not Updated 
  1878.           The control variable RexxBase.AllowDuplicatesIndexes has been set to 
  1879.           NO.  A  matching index has been found.  Therefore, the record was 
  1880.           written to the DBF file.  Remember, deleted records do not have their 
  1881.           index entries removed until the database has been packed.  Also, do 
  1882.           not confuse this with the control variable RexxBase.Unique, which 
  1883.           allows all records to be written to the database but prevents a 
  1884.           duplicate index entry from being created. See 
  1885.           Rexxbase.AllowDuplicateIndexes. 
  1886.  
  1887. Sample. 
  1888.  
  1889. /* REXX */
  1890. dbf = 'c:\users\net.dbf'
  1891. ret = rexxbase_opendbf('dbf')
  1892. if ret \= '' then do
  1893.   say ret
  1894.   exit
  1895.  end
  1896. ret = rexxbase_packdbf('dbf')
  1897.  
  1898.  
  1899. ΓòÉΓòÉΓòÉ 4.4. Index and Tag Functions ΓòÉΓòÉΓòÉ
  1900.  
  1901. The following functions allow you to access your database through indexes and 
  1902. to control the index files. 
  1903.  
  1904.  
  1905. ΓòÉΓòÉΓòÉ 4.4.1. Rexxbase_FindRecord. ΓòÉΓòÉΓòÉ
  1906.  
  1907. Description.  The command will position at a specified record using the master 
  1908. index file. 
  1909.  
  1910. Purpose. 
  1911.  
  1912. To read a particular record in the database using the index file. 
  1913.  
  1914. Format. 
  1915.  
  1916. rexxbase_findrecord('dbfname','string',[EXACT]) 
  1917.  
  1918. Parameters. 
  1919.  
  1920. dbfname 
  1921.           The REXX variable contains the name of your database as you defined 
  1922.           it in the Rexxbase_OpenDBF function. 
  1923. string 
  1924.           The index key string used for searching. 
  1925. EXACT 
  1926.           Optional indicator to tell RexxBase to find the exact 'string' in the 
  1927.           index.  This would cause a Hard Find.  If not specified then RexxBase 
  1928.           would execute a Soft Find. 
  1929.  
  1930. This function can avoid reading deleted records by setting 
  1931. Rexxbase.SkipDeleted. 
  1932.  
  1933. The name of the database is defined in a REXX variable.  You must pass the 
  1934. variable name in a string.  For example. 
  1935.  
  1936. myfilename = 'c:\xbase\machines.dbf'
  1937. ret = rexxbase_findrecord('myfilename','LASER 11')
  1938.  
  1939. Return Value  Description 
  1940.  
  1941. ''. 
  1942.           Normal 
  1943.  
  1944. No REXX DBF Name 
  1945.           No argument was passed to the routine. 
  1946.  
  1947. No Locate String Specified 
  1948.           Second parameter of function is missing. 
  1949.  
  1950. Unknown Database Name. 
  1951.           The name found in the passed parameter is not the same used to open 
  1952.           the database. 
  1953.  
  1954. Index File Not Opened Or Tag Set 
  1955.           When the database was opened, no index files were specified and no 
  1956.           TAG= parameter was specified. 
  1957.  
  1958. Record Not Found (when EXACT is specified) 
  1959.           You passed a string that is not on the master index.  No record is 
  1960.           read. 
  1961.  
  1962. Record Not Found (when EXACT is not specified) 
  1963.           The string entered is higher than any on the index. 
  1964.  
  1965. Internal File Processing Error. 
  1966.           Record area could not be read. Find the XX error code in the 
  1967.           rexxbase.error  stem variable. Where XX is a return code from OS/2. 
  1968.           If XX is equal to 5 then the operating system is denying access to 
  1969.           that area.  If XX is equal to 33 then the record area has been 
  1970.           locked.  For other values you can type on the command line 'HELP XX' 
  1971.           to find the values for XX. 
  1972.  
  1973. Database Tied To A Join 
  1974.           The database is already in use by the RexxBase_JoinDBF function. (See 
  1975.           registered user functions.) 
  1976.  
  1977. Sample. 
  1978.  
  1979. /* REXX */
  1980. /* this example copies the finds a record on the database */
  1981. dbf = 'c:\users\net.dbf'
  1982. ndx = 'c:\xbase\net.ndx'
  1983. ret = rexxbase_opendbf('dbf',ndx)
  1984. if ret \= '' then do
  1985.   say ret
  1986.   exit
  1987.  end
  1988. ret = rexxbase_findrecord('dbf','USA001')
  1989. if ret \= '' then do
  1990.   say find failed with ret
  1991.   exit
  1992.  end
  1993. say Network Disposition For USA001 is dbf.dispo
  1994. ret = rexxbase_closedbf('dbf')
  1995. if ret \  = '' then do
  1996.   say close failed with ret
  1997.   exit
  1998.  end
  1999.  
  2000. If you must have reverse indexes, open the database with the intended index, 
  2001. find the record to start at and readprev until TOF. 
  2002.  
  2003.  
  2004. ΓòÉΓòÉΓòÉ 4.4.2. Rexxbase_SetIndexTagName. ΓòÉΓòÉΓòÉ
  2005.  
  2006. Description.  The function provides an alternate method to specify which tag to 
  2007. use when finding records through a MDX files. 
  2008.  
  2009. Purpose. 
  2010.  
  2011. To specify which tag name to use in an MDX file. 
  2012.  
  2013. Format. 
  2014.  
  2015. rexxbase_setindextagname('dbfname','tagname') 
  2016.  
  2017. Parameters. 
  2018.  
  2019. dbfname 
  2020.           The REXX variable contains the name of your database as you defined 
  2021.           it in the Rexxbase_OpenDBF function. 
  2022. tagname 
  2023.           The name of a known tag in the associated MDX file. 
  2024.  
  2025. The name of the database is defined in a REXX variable.  You must pass the 
  2026. variable name in a string.  For example. 
  2027.  
  2028. myfilename = 'c:\xbase\machines.dbf'
  2029. ret = rexxbase_setindextagname('myfilename','location')
  2030.  
  2031. Return Value  Description 
  2032.  
  2033. ''. 
  2034.           Normal 
  2035.  
  2036. No REXX DBF Name 
  2037.           No argument was passed to the routine. 
  2038.  
  2039. No Index Tag Name Specified 
  2040.           Second parameter of function is missing. 
  2041.  
  2042. Unknown Database Name. 
  2043.           The name found in the passed parameter is not the same used to open 
  2044.           the database. 
  2045.  
  2046. No Index Tag File Opened 
  2047.           The database file does not have an associated MDX file. 
  2048.  
  2049. Primary Index Not MDX Type 
  2050.           Your program has made the primary index file an NDX file. 
  2051.  
  2052. Tag Index File Has No Tags 
  2053.           No tag has been assigned to the MDX file. 
  2054.  
  2055. Index Tag Name Not Found 
  2056.           The tag name has not been defined in the MDX file. 
  2057.  
  2058. Sample. 
  2059.  
  2060. /* REXX */
  2061. /* this example copies the finds a record on the database */
  2062. dbf = 'c:\users\net.dbf'
  2063. ret = rexxbase_opendbf('dbf')
  2064. if ret \= '' then do
  2065.   say ret
  2066.   exit
  2067.  end
  2068. ret = rexxbase_setindextagname('dbf','NETWORKS')
  2069. if ret \= '' then do
  2070.   say find failed with ret
  2071.   exit
  2072.  end
  2073. ret = rexxbase_findrecord('dbf','USA001')
  2074. if ret \= '' then do
  2075.   say find failed with ret
  2076.   exit
  2077.  end
  2078. say Network Disposition For USA001 is dbf.dispo
  2079. ret = rexxbase_closedbf('dbf')
  2080. if ret \  = '' then do
  2081.   say close failed with ret
  2082.   exit
  2083.  end
  2084.  
  2085.  
  2086. ΓòÉΓòÉΓòÉ 4.4.3. Rexxbase_CreateIndex ΓòÉΓòÉΓòÉ
  2087.  
  2088. Description.  This will create an index for an currently open database. 
  2089.  
  2090. The call to the RexxBase Create Index function requires 3 parameters:  Open 
  2091. Database Name, Index file name (FAT or HPFS format) and the string defining the 
  2092. index.  RexxBase does not verify nor add the NDX file extension.  It is 
  2093. recommended that your program specifies it. 
  2094.  
  2095. Purpose. 
  2096.  
  2097. To create an index for an open database. 
  2098.  
  2099. Format. 
  2100.  
  2101. rexxbase_createindex('dbfname',index file name,index string) 
  2102.  
  2103. Parameters. 
  2104.  
  2105. dbfname 
  2106.           The REXX variable contains the name of the database similar in 
  2107.           function to the database field in the Rexxbase_OpenDBF function. 
  2108. index file name 
  2109.           Any valid file name in FAT or HPFS format. 
  2110. index string 
  2111.           A string of characters used to specify the index. 
  2112.  
  2113. See REXXBASE.UNIQUE more information. 
  2114.  
  2115. See ndx definition more information. 
  2116.  
  2117. The name of the database is defined in a REXX variable.  You must pass the 
  2118. variable name in a string.  For example. 
  2119.  
  2120. myfilename = 'c:\xbase\newmachn.dbf'
  2121. myindexname = 'c:\xbase\newmachn.ndx'
  2122. rexxbase_opendbf('myfilename')
  2123. rexxbase_createindex('myfilename',myindexname,'num+dept')
  2124.  
  2125. Return Value  Description 
  2126.  
  2127. ''. 
  2128.           Normal 
  2129.  
  2130. No REXX DBF Name Specified 
  2131.           No argument was passed to the routine. 
  2132.  
  2133. Unknown Database Name. 
  2134.           The name found in the passed parameter is not the same used to open 
  2135.           the database. 
  2136.  
  2137. No Index File Name Specified 
  2138.           This procedure expects a second argument containing the new index 
  2139.           file name. 
  2140.  
  2141. No Index Field Names Specified 
  2142.           This procedure expects a third argument containing the index key. 
  2143.  
  2144. Index Not Built. 
  2145.           A runtime error occurred.  Review error message in  rexxbase.error 
  2146.           stem variable. 
  2147.  
  2148. Unknown Field Type 
  2149.           Use C, D, L, M, and N only for field types. 
  2150.  
  2151. Invalid Index Size 
  2152.           Indexes are limited to 100 bytes. 
  2153.  
  2154. Too Many Fields. 
  2155.           Only 100 fields are allowed per index. 
  2156.  
  2157. Data Type Mismatch 
  2158.           You can't mix numeric, character or date fields together 
  2159.  
  2160. Invalid Data Type 
  2161.           Memo fields and logic fields are not allowed to be used as indexes. 
  2162.  
  2163. Database Tied To A Join 
  2164.           The database is already in use by the RexxBase_JoinDBF function. (See 
  2165.           registered user functions.) 
  2166.  
  2167. Sample. 
  2168.  
  2169. /* REXX */
  2170. dbf = 'c:\xbase\machn.dbf'
  2171. ret = rexxbase_opendbf('dbf')
  2172. ret = rexxbase_createindex('dbf','machn.ndx','machnum')
  2173. ret = rexxbase_closedbf('dbf')
  2174.  
  2175.  
  2176. ΓòÉΓòÉΓòÉ 4.4.4. Rexxbase_CreateMultipleIndexFile ΓòÉΓòÉΓòÉ
  2177.  
  2178. Description.  This will create a multiple index for a currently open database. 
  2179.  
  2180. The call to the RexxBase Create Multiple Index File function requires 2 
  2181. parameters:  Open Database Name and an index file name (FAT or HPFS format). 
  2182. RexxBase does not verify nor add the MDX file extension.  It is recommended 
  2183. that your program specifies it. 
  2184.  
  2185. If the file was created with the RexxBase.dBaseFileType set to 'dbase4' a MDX 
  2186. file is created. 
  2187.  
  2188. This function does not create tags.  To add an index tag use 
  2189. RexxBase_AddTagToIndex function. 
  2190.  
  2191. Purpose. 
  2192.  
  2193. To create a multiple index file for an open database. 
  2194.  
  2195. Format. 
  2196.  
  2197. rexxbase_createmultipleindexfile('dbfname',index file name) 
  2198.  
  2199. Parameters. 
  2200.  
  2201. dbfname 
  2202.           The REXX variable contains the name of the database similar in 
  2203.           function to the database field in the Rexxbase_OpenDBF function. 
  2204. index file name 
  2205.           Any valid file name in FAT or HPFS format. 
  2206.  
  2207. See REXXBASE.UNIQUE more information. 
  2208.  
  2209. See MDX definition more information. 
  2210.  
  2211. The name of the database is defined in a REXX variable.  You must pass the 
  2212. variable name in a string.  For example. 
  2213.  
  2214. myfilename = 'c:\xbase\newmachn.dbf'
  2215. myindexname = 'c:\xbase\newmachn.mdx'
  2216. rexxbase_opendbf('myfilename')
  2217. rexxbase_createmultipleindexfile('myfilename',myindexname)
  2218.  
  2219. Return Value  Description 
  2220.  
  2221. ''. 
  2222.           Normal 
  2223.  
  2224. No REXX DBF Name Specified 
  2225.           No argument was passed to the routine. 
  2226.  
  2227. Unknown Database Name. 
  2228.           The name found in the passed parameter is not the same used to open 
  2229.           the database. 
  2230.  
  2231. No Index File Name Specified 
  2232.           This procedure expects a second argument containing the new index 
  2233.           file name. 
  2234.  
  2235. Create Index File Failed. 
  2236.           A runtime error occurred.  Review error message in  rexxbase.error 
  2237.           stem variable. 
  2238.  
  2239. Database Tied To A Join 
  2240.           The database is already in use by the RexxBase_JoinDBF function. (See 
  2241.           registered user functions.) 
  2242.  
  2243. Sample. 
  2244.  
  2245. /* REXX */
  2246. dbf = 'c:\xbase\machn.dbf'
  2247. ret = rexxbase_opendbf('dbf')
  2248. ret = rexxbase_createmultipleindexfile('dbf','machn.mdx')
  2249. ret = rexxbase_addtagtoindex('dbf','machnum')
  2250. ret = rexxbase_closedbf('dbf')
  2251.  
  2252.  
  2253. ΓòÉΓòÉΓòÉ 4.4.5. Rexxbase_AddTagToIndex ΓòÉΓòÉΓòÉ
  2254.  
  2255. Description.  This will add a tag index to a currently open database and MDX 
  2256. file. 
  2257.  
  2258. The call to the RexxBase Add Tag To Index function requires 3 parameters:  Open 
  2259. Database Name, tag name and the string defining the index. 
  2260.  
  2261. Purpose. 
  2262.  
  2263. To create an index tag. 
  2264.  
  2265. Format. 
  2266.  
  2267. rexxbase_addtagtoindex('dbfname',index tag name,index string) 
  2268.  
  2269. Parameters. 
  2270.  
  2271. dbfname 
  2272.           The REXX variable contains the name of the database similar in 
  2273.           function to the database field in the Rexxbase_OpenDBF function. 
  2274. index tag name 
  2275.           Any valid field name.  Follow the field name conventions. 
  2276. index string 
  2277.           A string of characters used to specify the index. 
  2278.  
  2279. See REXXBASE.UNIQUE more information. 
  2280.  
  2281. See MDX definition more information. 
  2282.  
  2283. The name of the database is defined in a REXX variable. You must pass the tag 
  2284. and variable name in a string.  For example. 
  2285.  
  2286. myfilename = 'c:\xbase\newmachn.dbf'
  2287. /* assumes there is an associated MDX file newmachn.mdx */
  2288. rexxbase_opendbf('myfilename')
  2289. rexxbase_addtagtoindex('myfilename','Num_Dept','num+dept')
  2290.  
  2291. Return Value  Description 
  2292.  
  2293. ''. 
  2294.           Normal 
  2295.  
  2296. No REXX DBF Name Specified 
  2297.           No argument was passed to the routine. 
  2298.  
  2299. Unknown Database Name. 
  2300.           The name found in the passed parameter is not the same used to open 
  2301.           the database. 
  2302.  
  2303. No Tag Name Specified 
  2304.           This procedure expects a second argument containing the new tag name. 
  2305.  
  2306. No Tag Index Field Specified 
  2307.           This procedure expects a third argument containing the index key. 
  2308.  
  2309. Tag Index File Not Opened 
  2310.           The DBF file does not have an associated MDX file that was opened 
  2311.           when the DBF was opened. 
  2312.  
  2313. Failed To Add Tag To Index 
  2314.           A runtime error occurred.  Review error message in  rexxbase.error 
  2315.           stem variable. 
  2316.  
  2317. Unknown Field Type 
  2318.           Use C, D, L, M, and N only for field types. 
  2319.  
  2320. Invalid Index Size 
  2321.           Indexes are limited to 100 bytes. 
  2322.  
  2323. Too Many Fields. 
  2324.           Only 100 fields are allowed per index. 
  2325.  
  2326. Data Type Mismatch 
  2327.           You can't mix numeric, character or date fields together 
  2328.  
  2329. Invalid Data Type 
  2330.           Memo fields and logic fields are not allowed to be used as indexes. 
  2331.  
  2332. Index Tag Name Too Long 
  2333.           The second parameter is invalid.  See above. 
  2334.  
  2335. Primary Index File Not MDX format. 
  2336.           The primary index file must be the MDX file. 
  2337.  
  2338. Database Tied To A Join 
  2339.           The database is already in use by the RexxBase_JoinDBF function. (See 
  2340.           registered user functions.) 
  2341.  
  2342. Sample. 
  2343.  
  2344. /* REXX */
  2345. dbf = 'c:\xbase\machn.dbf'
  2346. /* assume machn.mdx exists */
  2347. ret = rexxbase_opendbf('dbf')
  2348. ret = rexxbase_addtagtoindex('dbf','machnum','machnum')
  2349. ret = rexxbase_closedbf('dbf')
  2350.  
  2351.  
  2352. ΓòÉΓòÉΓòÉ 4.4.6. Rexxbase_DropTagFromIndex ΓòÉΓòÉΓòÉ
  2353.  
  2354. Description.  This will remove a tag index from a currently open database and 
  2355. MDX file. 
  2356.  
  2357. The call to the RexxBase Drop Tag From  Index function requires 2 parameters: 
  2358. Open Database Name and tag name. 
  2359.  
  2360. Purpose. 
  2361.  
  2362. To drop an index tag. 
  2363.  
  2364. Format. 
  2365.  
  2366. rexxbase_droptagfromindex('dbfname',index tag name) 
  2367.  
  2368. Parameters. 
  2369.  
  2370. dbfname 
  2371.           The REXX variable contains the name of the database similar in 
  2372.           function to the database field in the Rexxbase_OpenDBF function. 
  2373. index tag name 
  2374.           An existing tag field name. 
  2375.  
  2376. The name of the database is defined in a REXX variable. You must pass the tag 
  2377. and variable name in a string.  For example. 
  2378.  
  2379. myfilename = 'c:\xbase\newmachn.dbf'
  2380. /* assumes there is an associated MDX file newmachn.mdx */
  2381. rexxbase_opendbf('myfilename')
  2382. rexxbase_droptagfromindex('myfilename','Num_Dept')
  2383.  
  2384. Return Value  Description 
  2385.  
  2386. ''. 
  2387.           Normal 
  2388.  
  2389. No REXX DBF Name Specified 
  2390.           No argument was passed to the routine. 
  2391.  
  2392. Unknown Database Name. 
  2393.           The name found in the passed parameter is not the same used to open 
  2394.           the database. 
  2395.  
  2396. No Tag Name Specified 
  2397.           The second argument contains the tag name to be dropped. 
  2398.  
  2399. Tag Index File Not Opened 
  2400.           The DBF file does not have an associated MDX file that was opened 
  2401.           when the DBF was opened. 
  2402.  
  2403. Primary Index File Not MDX format. 
  2404.           The primary index file must be the MDX file. 
  2405.  
  2406. Database Tied To A Join 
  2407.           The database is already in use by the RexxBase_JoinDBF function. (See 
  2408.           registered user functions.) 
  2409.  
  2410. Failed To Drop Tag From Index 
  2411.           A runtime error occurred.  Review error message in  rexxbase.error 
  2412.           stem variable. 
  2413.  
  2414. Sample. 
  2415.  
  2416. /* REXX */
  2417. dbf = 'c:\xbase\machn.dbf'
  2418. /* assume machn.mdx exists */
  2419. ret = rexxbase_opendbf('dbf')
  2420. ret = rexxbase_droptagfromindex('dbf','machnum','machnum')
  2421. ret = rexxbase_closedbf('dbf')
  2422.  
  2423.  
  2424. ΓòÉΓòÉΓòÉ 4.4.7. Rexxbase_ReindexDBF ΓòÉΓòÉΓòÉ
  2425.  
  2426. Purpose. 
  2427.  
  2428. To rebuild all open indexes for an open database. 
  2429.  
  2430. Format. 
  2431.  
  2432. ret = rexxbase_reindexdbf(dbfname)
  2433.  
  2434. Parameters. 
  2435.  
  2436. dbfname 
  2437.           The REXX variable contains the name of the database similar in 
  2438.           function to the database field in the Rexxbase_OpenDBF function. 
  2439.  
  2440. Description.  This will rebuild all the indexes that are opened for a database 
  2441. file. 
  2442.  
  2443. When a database has been changed without its associated indexes opened, the 
  2444. index pointers will be incorrect.  This function will rebuild all indexes for 
  2445. the file. 
  2446.  
  2447. Also, use this function when many updates have been applied to a database, even 
  2448. with the index opened.  This will maintain the indexes for efficiency. 
  2449.  
  2450. myfilename = 'c:\xbase\machn.dbf'
  2451. myndxname = 'c:\xbase\machn.ndxf'
  2452. rexxbase_reindexdbf('myfilename',myndxname)
  2453.  
  2454. Return Value  Description 
  2455.  
  2456. ''. 
  2457.           Normal 
  2458.  
  2459. No REXX DBF Name Specified 
  2460.           No argument was passed to the routine. 
  2461.  
  2462. Unknown Database Name. 
  2463.           The name found in the passed parameter is not the same used to open 
  2464.           the database. 
  2465.  
  2466. Database Tied To A Join 
  2467.           The database is already in use by the RexxBase_JoinDBF function. (See 
  2468.           registered user functions.) 
  2469.  
  2470. Sample. 
  2471.  
  2472. /* REXX */
  2473. dbf = 'c:\xbase\newmachn.dbf'
  2474. rexxbase_opendbf('dbf','c:\xbase\newmachn.ndx')
  2475. ret = rexxbase_reindexdbf('dbf')
  2476. say  newmachn.mdx has been rebuilt
  2477. say  newmachn.ndx has been rebuilt
  2478. ret = rexxbase_closedbf('dbf')
  2479.  
  2480.  
  2481. ΓòÉΓòÉΓòÉ 4.5. Database Sorting. ΓòÉΓòÉΓòÉ
  2482.  
  2483.  
  2484. ΓòÉΓòÉΓòÉ 4.5.1. Rexxbase_SortDBF ΓòÉΓòÉΓòÉ
  2485.  
  2486. Description.  This will sort a database file by fields names and create a new 
  2487. database file. 
  2488.  
  2489. Prior to calling the RexxBase Sort function you must specify the sort fields 
  2490. and the sort order for each field.  You do this by creating field names using 
  2491. the database variable name concatenated with the SORTFIELD string. 
  2492.  
  2493. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2494. ΓöéSort FieldΓöé*.SORTFIELD.0  ΓöéThe number of  Γöé               Γöé          Γöé
  2495. ΓöéCount     Γöé               Γöéfields to be   Γöé               Γöé          Γöé
  2496. Γöé          Γöé               Γöéused for sort  Γöé               Γöé          Γöé
  2497. Γöé          Γöé               Γöécriteria.      Γöé               Γöé          Γöé
  2498. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2499. ΓöéSort FieldΓöé*.SORTFIELD.1  ΓöéThe primary    Γöé*.SORTTYPE.1   ΓöéUse a     Γöé
  2500. ΓöéName 1    Γöé               Γöésort field.    Γöé               Γöévalue of  Γöé
  2501. Γöé          Γöé               Γöé               Γöé               Γöé'-' (minusΓöé
  2502. Γöé          Γöé               Γöé               Γöé               Γöésign) to  Γöé
  2503. Γöé          Γöé               Γöé               Γöé               Γöésort this Γöé
  2504. Γöé          Γöé               Γöé               Γöé               Γöéfield in  Γöé
  2505. Γöé          Γöé               Γöé               Γöé               ΓöédescendingΓöé
  2506. Γöé          Γöé               Γöé               Γöé               Γöéorder.    Γöé
  2507. Γöé          Γöé               Γöé               Γöé               ΓöéAny other Γöé
  2508. Γöé          Γöé               Γöé               Γöé               Γöévalue willΓöé
  2509. Γöé          Γöé               Γöé               Γöé               Γöésort the  Γöé
  2510. Γöé          Γöé               Γöé               Γöé               Γöéfield in  Γöé
  2511. Γöé          Γöé               Γöé               Γöé               Γöéascending Γöé
  2512. Γöé          Γöé               Γöé               Γöé               Γöéorder.    Γöé
  2513. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2514. Γöé.         Γöé.              Γöé               Γöé               Γöé          Γöé
  2515. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2516. ΓöéSort FieldΓöé*.SORTFIELD.n  ΓöéThe last sort  Γöé               Γöé          Γöé
  2517. Γöén         Γöé               Γöéfield in       Γöé               Γöé          Γöé
  2518. Γöé          Γöé               Γöépriority.  The Γöé               Γöé          Γöé
  2519. Γöé          Γöé               Γöévalue of n     Γöé               Γöé          Γöé
  2520. Γöé          Γöé               Γöéshould be equalΓöé               Γöé          Γöé
  2521. Γöé          Γöé               Γöéto the value   Γöé               Γöé          Γöé
  2522. Γöé          Γöé               Γöéspecified in   Γöé               Γöé          Γöé
  2523. Γöé          Γöé               Γöédbname.SORTFIELΓöé               Γöé          Γöé
  2524. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2525.  
  2526. Purpose. 
  2527.  
  2528. To sort a database. 
  2529.  
  2530. Format. 
  2531.  
  2532. rexxbase_sortdbf('dbfname',sortfilename) 
  2533.  
  2534. Parameters. 
  2535.  
  2536. dbfname 
  2537.           The REXX variable contains the name of your database as you defined 
  2538.           it in the Rexxbase_OpenDBF function. 
  2539. sortfilename 
  2540.           The sorted output file name as it will be known to the operating 
  2541.           system. 
  2542.  
  2543. This function can skip deleted records by setting Rexxbase.SkipDeleted. 
  2544.  
  2545. The name of the database is defined in a REXX variable.  You must pass the 
  2546. variable name in a string.  For example. 
  2547.  
  2548. myfilename = 'c:\xbase\machines.dbf' ret =
  2549. rexxbase_sortdbf('myfilename','c:\xbase\machsort.dbf')
  2550.  
  2551. Return Value  Description 
  2552.  
  2553. ''. 
  2554.           Normal 
  2555.  
  2556. No REXX DBF Name Specified 
  2557.           The first parameter of function call is missing. 
  2558.  
  2559. No Sort DBF Name Specified 
  2560.           The second parameter of function call is missing. 
  2561.  
  2562. Unknown Database Name. 
  2563.           The name found in the passed parameter is not the same used to open 
  2564.           the database. 
  2565.  
  2566. Sort Field Count Not Found 
  2567.           The REXX variable containing the field count is missing.  See 
  2568.           *.SORTFIELD.0 above. 
  2569.  
  2570. Can't Find 'fieldname' 
  2571.           The field name used by the SORTFIELD stem variables are not part of 
  2572.           this database. 
  2573.  
  2574. Not Enough Memory For Summarizing or Sorting 
  2575.           RexxBase uses the physical and virtual address space to perform the 
  2576.           sort.  The database to be sorted is too large for this process. 
  2577.  
  2578. Can't Open Sort DBF File. 
  2579.           OS/2 returned a error code that indicates some type of error has 
  2580.           occurred while opening the output database. 
  2581.  
  2582. Can't Write To Sort DBF File. 
  2583.           OS/2 returned a error code that indicates some type of error has 
  2584.           occurred while writing the output database. 
  2585.  
  2586. Unable To Write Fields To File. 
  2587.           OS/2 returned a error code that indicates some type of error has 
  2588.           occurred while writing the output database. 
  2589.  
  2590. Internal File Processing Area 
  2591.           Record area could not be read. Find the XX error code in the 
  2592.           rexxbase.error  stem variable. Where XX is a return code from OS/2. 
  2593.           If XX is equal to 5 then the operating system is denying access to 
  2594.           that area.  If XX is equal to 33 then the record area has been 
  2595.           locked.  For other values you can type on the command line 'HELP XX' 
  2596.           to find the values for XX. 
  2597.  
  2598. Record Locked 
  2599.           The file has been locked by another process. 
  2600.  
  2601. Sample. 
  2602.  
  2603. /* REXX */
  2604. /* sort on field name location (descending)*/
  2605. dbf = 'c:\users\net.dbf'
  2606. ret = rexxbase_opendbf('dbf')
  2607. if ret \= '' then do
  2608.   say ret
  2609.   exit
  2610.  end
  2611. dbf.sortfield.0 = 1
  2612. dbf.sortfield.1 = location
  2613. dbf.sorttype.1 = '-'
  2614. ret = rexxbase_sortdbf('dbf','c:\users\sortloc.dbf')
  2615.  
  2616.  NOTE: 
  2617.  
  2618. MEMO fields for the original file are valid with the SORTED file.  BUT these 
  2619. MEMO fields can be corrupted with either file changes or adds a MEMO field. 
  2620. THEREFORE, if you want to use the DBT (MEMO file) with the sorted file, you 
  2621. should copy the DBT file using the SORTED file name. 
  2622.  
  2623.  dbf = 'presort.dbf'
  2624.  call rexxbase_opendbf 'dbf'
  2625.  call rexxbase_sortdbf 'dbf' 'sorted.dbf'
  2626.  'COPY presort.dbt sorted.dbt'
  2627.  sdbf = 'sorted.dbf'
  2628.  call rexxbase_opendbf 'sdbf'
  2629.  
  2630.  
  2631. ΓòÉΓòÉΓòÉ 4.6. Registered User Functions. ΓòÉΓòÉΓòÉ
  2632.  
  2633.  The following functions are available with the registered user package: 
  2634.  
  2635. o Rexxbase_ReadAndLockDBF 
  2636.  
  2637. o Rexxbase_ReadAndLockPrevDBF 
  2638.  
  2639. o Rexxbase_GoToAndLockRecord 
  2640.  
  2641. o Rexxbase_FindAndLockRecord 
  2642.  
  2643. o Rexxbase_WriteDBFWithLock 
  2644.  
  2645. o Rexxbase_LockDBF 
  2646.  
  2647. o Rexxbase_UnlockDBF 
  2648.  
  2649. o Rexxbase_SetLockTimeout 
  2650.  
  2651. o Rexxbase_ExportDBF 
  2652.  
  2653. o Rexxbase_ImportDBF 
  2654.  
  2655. o Rexxbase_FormatDate 
  2656.  
  2657. o Rexxbase_InternalDate 
  2658.  
  2659. o Rexxbase_DaysDifference 
  2660.  
  2661. o Rexxbase_DateCalc 
  2662.  
  2663. o Rexxbase_DayOfWeek 
  2664.  
  2665. o Rexxbase_FilterDBF 
  2666.  
  2667. o Rexxbase_ScanForRecord 
  2668.  
  2669. o Rexxbase_JoinDBF 
  2670.  
  2671. o Rexxbase_SummarizeDBF 
  2672.  
  2673. o Rexxbase_ChangePrimaryIndex 
  2674.  
  2675. o Rexxbase_Soundex 
  2676.  
  2677.  
  2678. ΓòÉΓòÉΓòÉ 5. RexxBase Fields and Database Fields. ΓòÉΓòÉΓòÉ
  2679.  
  2680. RexxBase uses REXX Stem and Compound variables extensively to allow your 
  2681. procedure to use your database files. 
  2682.  
  2683.  
  2684. ΓòÉΓòÉΓòÉ 5.1. RexxBase Fields. ΓòÉΓòÉΓòÉ
  2685.  
  2686. RexxBase PROVIDES several fields for controlling your database.  All field 
  2687. names are associated with your database by using the stem variable name you 
  2688. pass to the RexxBase Functions. 
  2689.  
  2690. Also, RexxBase provides a stem variable for system errors.  The field name is 
  2691. rexxbase.error .  Refer to the section on error processing for more information 
  2692. and a list of potential error messages. 
  2693.  
  2694. Name      Description. 
  2695. "database name".RECORDCOUNT 
  2696.           Number of record on the file.  Where database name is the name your 
  2697.           program passes to RexxBase. 
  2698. "database name".DBASEFILEFORMAT 
  2699.           A value of dBase3 or dBase4. The format of the DBF based on internal 
  2700.           indicators.  NOTE: without using MDX files or MEMO fields, the format 
  2701.           defaults to dBase3. 
  2702. "database name".RECORDNUMBER 
  2703.           The current record number.  Where database name is the name your 
  2704.           program passes to RexxBase. 
  2705. "database name".FILESTATUS 
  2706.           TOF - Top of file, BOF - End of file, or null. 
  2707. "database name".RECORDSTATUS 
  2708.           DELETED - current record is deleted, or null. 
  2709. "database name".LASTUPDATE 
  2710.           Last day file was updated. 
  2711. "database name".FIELDCOUNT 
  2712.           Number of fields on the database. 
  2713. database name".FIELDNAME.# 
  2714.           Field names on the database.  Where # is any number from 1 to the 
  2715.           number of fields as specified in FIELDCOUNT. 
  2716. "database name"."fieldname".TYPE 
  2717.           The database type for the respective field, see FIELDNAME.#. 
  2718.           "fieldname" is the name of the field in the database. 
  2719. "database name"."fieldname".LENGTH 
  2720.           The length of the respective field, see FIELDNAME.#.  "fieldname" is 
  2721.           the name of the field in the database.  Numeric fields will have in 
  2722.           the value in the format of xx.yy where xx is the length of the field 
  2723.           and yy is the number of decimal positions.  Memo fields are always 
  2724.           10.  Logical fields are always 1. 
  2725. "database name".INDEXCOUNT 
  2726.           Number of index files open for the database. 
  2727. "database name".INDEXFILETYPE.# 
  2728.           Returns either NDX or MDX. Where # is any number from 1 to the number 
  2729.           of fields as specified in INDEXCOUNT. 
  2730. "database name".INDEXFILENAME.# 
  2731.           Operating System file names for the open index files. Where # is any 
  2732.           number from 1 to the number of fields as specified in INDEXCOUNT. 
  2733. "database name".INDEXFIELDS.# 
  2734.           Field names used for indexing.  Where # is any number from 1 to the 
  2735.           number of fields as specified in INDEXCOUNT. 
  2736. "database name".TAGFIELDS.#. 
  2737.           For MDX index files, this is the number of defined TAG fields. Where 
  2738.           # is any number from 1 to the number of fields as specified in 
  2739.           INDEXCOUNT. 
  2740. "database name".INDEXTAGNAME.#.##. 
  2741.           For MDX index files, this is the TAG field name. Where # is any 
  2742.           number from 1 to the number of fields as specified in INDEXCOUNT. 
  2743.           Where ## is any number from 1 to the number of fields as specified in 
  2744.           INDEXFIELDS. 
  2745. "database name".INDEXTAGFIELDS.#.##. 
  2746.           For MDX index files, these are the fields that are specified by the 
  2747.           TAG name. Similar to INDEXFIELDNAME above. Where # is any number from 
  2748.           1 to the number of fields as specified in INDEXCOUNT. Where ## is any 
  2749.           number from 1 to the number of fields as specified in INDEXFIELDS. 
  2750. "database name".INDEXVALUE.#(.##). 
  2751.           This is the value for the current index record. Where # is any number 
  2752.           from 1 to the number of fields as specified in INDEXCOUNT. For MDX 
  2753.           TAG indexes, ## is any number from 1 to the number of fields as 
  2754.           specified in INDEXFIELDS. 
  2755.  
  2756.  
  2757. ΓòÉΓòÉΓòÉ 5.1.1. Field Naming Convention. ΓòÉΓòÉΓòÉ
  2758.  
  2759. With the exception of RexxBase database names, all database field names are 
  2760. prefixed by the Rexx variable you use to specify the database.  For example if 
  2761. you used the REXX variable DNAME as the database name the field count variable 
  2762. name would be DNAME.FIELDCOUNT. 
  2763.  
  2764. Database field names are directly accessible by the field name in the database. 
  2765. For example if your database had three fields defined as NAME, CITY, ZIP, then 
  2766. your REXX procedure will be able to read from and write to these fields by 
  2767. using the name directly.  The database name is not prefixed to the fields 
  2768. names. 
  2769.  
  2770. To find out the field names in a database use the following example: 
  2771.  
  2772. /* REXX */
  2773. parse arg dbfname
  2774. do i = 1 to dbfname.fieldcount
  2775.   k = "say dbfname.fieldname.i "
  2776.   k = k || " dbfname."dbfname.fieldname.i".type"
  2777.   k = k || " dbfname."dbfname.fieldname.i".length"
  2778.   interpret k
  2779. end /* do */
  2780. say dbfname
  2781. do i = 1 to dbfname.recordcount
  2782.   say dbfname.recordstatus
  2783.   say reading is rexxbase_readdbf("dbfname")
  2784.   do j = 1 to dbfname.fieldcount
  2785.     k = "say dbfname.fieldname.j "
  2786.     k = k || " is dbfname." || dbfname.fieldname.j
  2787.     interpret k     /* don't let the quoted field name fool you */
  2788.     /* the first dbfname.fieldname.j will appear as the field name after interpretation*/
  2789.     /* the second will have the value appear after interpretation */
  2790.    end /* do */
  2791.  end /* do */
  2792. /* since no index files */
  2793. if dbfname.indexcount = 0 then say "No MDX Files Or NDX files found"
  2794. else do
  2795.         /* but there maybe a MDX file */
  2796.         say "This file has an associated MDX file"
  2797.         end
  2798.  
  2799. say rexxbase_closedbf("dbfname")
  2800. return
  2801.  
  2802.  
  2803. ΓòÉΓòÉΓòÉ 5.1.2. Your Program Changing a RexxBase Field Value. ΓòÉΓòÉΓòÉ
  2804.  
  2805. In most cases if you change a RexxBase field value, like FIELDCOUNT there will 
  2806. be no effect internally to RexxBase or the actual database file. 
  2807.  
  2808.  
  2809. ΓòÉΓòÉΓòÉ 5.2. Database Fields. ΓòÉΓòÉΓòÉ
  2810.  
  2811. Database field name are accessible by concatenating the database variable name, 
  2812. your procedure assigns when opening the database, with the field name in the 
  2813. database.  For example if your database had three fields defined as NAME, CITY, 
  2814. ZIP, and your REXX procedure opened the database as ADDRESS then your REXX 
  2815. procedure will be able to read from and write to these fields by using the 
  2816. names ADDRESS.NAME, ADDRESS.CITY AND ADDRESS.ZIP. 
  2817.  
  2818. The database name is prefixed to the fields names. 
  2819.  
  2820.  
  2821. ΓòÉΓòÉΓòÉ 5.2.1. Example of Field Naming. ΓòÉΓòÉΓòÉ
  2822.  
  2823. Unlike RexxBase field names, database field are never prefixed with the 
  2824. database name when used as a function parameter or in field definitions.  For 
  2825. example when sorting on a field, you must specify what field to sort using the 
  2826. databasename.SORTFIELD.# construct.  The field name you put into the assignment 
  2827. is simply the field name as defined to the dBase database. 
  2828.  
  2829. /* to sort on field ZIP in database ADDRESS */
  2830. address.sortfield.0 = 1
  2831. address.sortfield.1 = zip /* wrong */
  2832. /* address.sortfield.1 = address.zip */
  2833. /* this will assign the value of address.zip to address.sortfield.1 */
  2834. /* which will only work if the value of address.zip is zip */
  2835.  
  2836.  
  2837. ΓòÉΓòÉΓòÉ 5.3. Field Verification. ΓòÉΓòÉΓòÉ
  2838.  
  2839. The following field verifications and edits are used. 
  2840.  
  2841.  
  2842. ΓòÉΓòÉΓòÉ 5.3.1. Date Fields ΓòÉΓòÉΓòÉ
  2843.  
  2844. Dates are validated based on two parameters. 
  2845.  
  2846. First, is the RexxBase Variable RexxBase.FormatDate. 
  2847.  
  2848. Second, is the Country Code, as defined by OS/2 NLS. 
  2849.  
  2850. RexxBase.FormatDate takes precedence.  If it is turned "OFF" then all date 
  2851. fields are assumed to be in the following 8 numeric-character format: 
  2852. CCYYMMDD. 
  2853.  
  2854. CC - century. 
  2855.  
  2856. YY - year. 
  2857.  
  2858. MM - month. 
  2859.  
  2860. DD - day. 
  2861.  
  2862. If you need to use dates that go past 1999/12/31 then you should always use 
  2863. this format.  This is because the default century for the other formats is 
  2864. "1900." 
  2865.  
  2866. If RexxBase.FormatDate is "ON", the default value, then date fields are 
  2867. formatted based on the Country Code.  As follows:  (all are 8 bytes long with 
  2868. separators). 
  2869.  
  2870. MM/DD/YY, slashes or some other separator is required 
  2871.  
  2872. DD/MM/YY, slashes or some other separator is required 
  2873.  
  2874. YY/MM/DD, slashes or some other separator is required 
  2875.  
  2876. Edits are performed on all 4 types of date fields. 
  2877.  
  2878. Century is ignored and defaults to 19. 
  2879.  
  2880. Year is any numeric value from 00 to 99. 
  2881.  
  2882. Month is any numeric value from 01 to 12. 
  2883.  
  2884. Day is any numeric value from 01 to last day of month. 
  2885.  
  2886.  
  2887. ΓòÉΓòÉΓòÉ 5.3.2. Numeric Fields ΓòÉΓòÉΓòÉ
  2888.  
  2889. Numeric field verification skips over white space characters until an 
  2890. alphanumeric character is found.  If the first non-white space character is 
  2891. alphabetic then the value is stored as zero - NOTE:  there is no error message. 
  2892. Field values larger than the defined length (and/or decimal count) are 
  2893. truncated. 
  2894.  
  2895.  
  2896. ΓòÉΓòÉΓòÉ 5.3.3. Logical fields ΓòÉΓòÉΓòÉ
  2897.  
  2898. Logical fields are tested and verified for correctness as follows: 
  2899.  
  2900. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2901. ΓöéFirst Byte of       ΓöéStored Γöé                              Γöé
  2902. ΓöéLogical Field Value ΓöéAs     Γöé                              Γöé
  2903. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2904. ΓöéT, t, 1, Y, or y    ΓöéT      Γöé                              Γöé
  2905. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2906. ΓöéF, f, 0, N, or n    ΓöéF      Γöé                              Γöé
  2907. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2908. ΓöéAny other value     ΓöéF      ΓöéLook for error message on     Γöé
  2909. Γöé                    Γöé       Γöérexxbase.error  stem variable.Γöé
  2910. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2911.  
  2912. RexxBase can also return REXX logical values. If the control variable 
  2913. REXXBASE.REXXLOGICALS  is set to ON, then read functions will either return 0 
  2914. for F value fields or 1 for T valued fields. 
  2915.  
  2916.  
  2917. ΓòÉΓòÉΓòÉ 5.3.4. MEMO Fields. ΓòÉΓòÉΓòÉ
  2918.  
  2919. Memo field names follow the same field naming convention as other field names. 
  2920.  
  2921.  
  2922. ΓòÉΓòÉΓòÉ 6. When You Are Done. ΓòÉΓòÉΓòÉ
  2923.  
  2924. After using the RexxBase functions your REXX command file may drop the RexxBase 
  2925. functions. This can be accomplished by using the Rexxbase_ShutDown function or 
  2926. issuing the Rexx command RXFUNCDROP for each function. 
  2927.  
  2928. While the IBM documentation recommends dropping functions.  we feel that it is 
  2929. an unnecessary exercise.  Do this only if you have literally thousands of 
  2930. functions registered.  The space requirements are minimal, but the search time, 
  2931. for thousands of functions, may be significant. 
  2932.  
  2933.  
  2934. ΓòÉΓòÉΓòÉ 6.1. Rexxbase_ShutDown. ΓòÉΓòÉΓòÉ
  2935.  
  2936. There may be a time when you want to drop all of the RexxBase functions from 
  2937. the Rexx function pool. To do this use the RexxBase command RexxBase_ShutDown. 
  2938. ShutDown function is to issue a Rexx Function Drop for each of the RexxBase 
  2939. functions.  It is pretty much performs the opposite utility of the 
  2940. RexxBase_Init command. 
  2941.  
  2942.  RexxBase_ShutDown() 
  2943.  
  2944.  There are no parameters. 
  2945.  
  2946.  There is no return code. 
  2947.  
  2948.  
  2949. ΓòÉΓòÉΓòÉ 6.2. Dropping Individual RexxBase Functions. ΓòÉΓòÉΓòÉ
  2950.  
  2951. The format of the command is  RXFUNCDROP(function) 
  2952.  
  2953. function is the name of the RexxBase routine as your procedure defined it. 
  2954.  
  2955. rxfuncdrop(rexxbase_opendbf) 
  2956.  
  2957. Return codes most likely to be returned are: 
  2958.  
  2959. o  0 - OK. 
  2960. o  40 - function not found. 
  2961.  
  2962.  
  2963. ΓòÉΓòÉΓòÉ 7. Returned Values and Internal Errors. ΓòÉΓòÉΓòÉ
  2964.  
  2965. The following two sections are lists of return values and internal error 
  2966. messages. 
  2967.  
  2968.  
  2969. ΓòÉΓòÉΓòÉ 7.1. Return Values and Functions ΓòÉΓòÉΓòÉ
  2970.  
  2971.  The following is a list of possible return values and associated function 
  2972. names: 
  2973.  
  2974. o BOF 
  2975.  
  2976.   Rexxbase_ReadDBF 
  2977.  
  2978.   Rexxbase_ReadDBF 
  2979.  
  2980.   Rexxbase_ReadDBF 
  2981.  
  2982.   Rexxbase_GoToRecord 
  2983.  
  2984.   Rexxbase_GoToRecord 
  2985.  
  2986.   Rexxbase_ScanForRecord 
  2987.  
  2988.   Rexxbase_ScanForRecord 
  2989.  
  2990. o Bad Record Number 
  2991.  
  2992.   Rexxbase_GoToRecord 
  2993.  
  2994. o Bad Variable Name. Rexx Rtn  is %2.2x\0 
  2995.  
  2996.   Rexxbase_OpenDBF 
  2997.  
  2998. o Bad Variable Name;  rc  is %2.2x\0 
  2999.  
  3000.   Rexxbase_CreateDBF 
  3001.  
  3002.   Rexxbase_CreateFromDBF 
  3003.  
  3004. o Can't Create Area For Join 
  3005.  
  3006.   Rexxbase_JoinDBF 
  3007.  
  3008. o Can't Find filename 
  3009.  
  3010.   Rexxbase_SortDBF 
  3011.  
  3012. o Can't Open Index File, Database Is Open 
  3013.  
  3014.   Rexxbase_OpenDBF 
  3015.  
  3016. o Can't Open Sort DBF File 
  3017.  
  3018.   Rexxbase_SummarizeDBF 
  3019.  
  3020.   Rexxbase_SortDBF 
  3021.  
  3022. o Can't Open filename 
  3023.  
  3024.   Rexxbase_OpenDBF 
  3025.  
  3026. o Can't Write To Sort DBF file 
  3027.  
  3028.   Rexxbase_SummarizeDBF 
  3029.  
  3030.   Rexxbase_SortDBF 
  3031.  
  3032. o Create Failed 
  3033.  
  3034.   Rexxbase_CreateDBF 
  3035.  
  3036. o Create Index File Failed 
  3037.  
  3038.   Rexxbase_CreateMultipleIndexFile 
  3039.  
  3040. o CreateFrom Failed 
  3041.  
  3042.   Rexxbase_CreateFromDBF 
  3043.  
  3044. o Database Name Already In Use 
  3045.  
  3046.   Rexxbase_OpenDBF 
  3047.  
  3048.   Rexxbase_CreateDBF 
  3049.  
  3050.   Rexxbase_CreateFromDBF 
  3051.  
  3052. o Database Tied TO A Join 
  3053.  
  3054.   Rexxbase_ReindexDBF 
  3055.  
  3056. o Database Tied To A Join 
  3057.  
  3058.   Rexxbase_CloseDBF 
  3059.  
  3060.   Rexxbase_ReadDBF 
  3061.  
  3062.   Rexxbase_ReadPrevDBF 
  3063.  
  3064.   Rexxbase_GoToRecord 
  3065.  
  3066.   Rexxbase_WriteDBF 
  3067.  
  3068.   Rexxbase_UpdateDBF 
  3069.  
  3070.   Rexxbase_ScanForRecord 
  3071.  
  3072.   Rexxbase_CreateFromDBF 
  3073.  
  3074.   Rexxbase_ModifyDBF 
  3075.  
  3076.   Rexxbase_DeleteRecord 
  3077.  
  3078.   Rexxbase_UndeleteRecord 
  3079.  
  3080.   Rexxbase_FindRecord 
  3081.  
  3082.   Rexxbase_ChangePrimaryIndex 
  3083.  
  3084.   Rexxbase_CreateIndex 
  3085.  
  3086.   Rexxbase_CreateMultipleIndexFile 
  3087.  
  3088.   Rexxbase_AddTagToIndex 
  3089.  
  3090.   Rexxbase_DropTagFromIndex 
  3091.  
  3092.   Rexxbase_PackDBF 
  3093.  
  3094.   Rexxbase_SummarizeDBF 
  3095.  
  3096.   Rexxbase_SortDBF 
  3097.  
  3098. o Failed To Add Tag To Index 
  3099.  
  3100.   Rexxbase_AddTagToIndex 
  3101.  
  3102. o Failed To Drop Tag From Index 
  3103.  
  3104.   Rexxbase_DropTagFromIndex 
  3105.  
  3106. o First Database Name Unknown 
  3107.  
  3108.   Rexxbase_JoinDBF 
  3109.  
  3110. o First Joined DBF Name Not Specified 
  3111.  
  3112.   Rexxbase_JoinDBF 
  3113.  
  3114. o Index File Not Opened 
  3115.  
  3116.   Rexxbase_ChangePrimaryIndex 
  3117.  
  3118. o Index File Not Opened or Tag Set 
  3119.  
  3120.   Rexxbase_FindRecord 
  3121.  
  3122. o Index Limit Reached 
  3123.  
  3124.   Rexxbase_OpenDBF 
  3125.  
  3126. o Index Not Built 
  3127.  
  3128.   Rexxbase_CreateIndex 
  3129.  
  3130. o Index Tag Name Not Found 
  3131.  
  3132.   Rexxbase_SetIndexTagName 
  3133.  
  3134. o Internal File Processing Error 
  3135.  
  3136.   Rexxbase_ReadDBF 
  3137.  
  3138.   Rexxbase_ReadPrevDBF 
  3139.  
  3140.   Rexxbase_GoToRecord 
  3141.  
  3142.   Rexxbase_ScanForRecord 
  3143.  
  3144.   Rexxbase_FindRecord 
  3145.  
  3146.   Rexxbase_SummarizeDBF 
  3147.  
  3148.   Rexxbase_SortDBF 
  3149.  
  3150. o Internal processing error 
  3151.  
  3152.   Rexxbase_JoinDBF 
  3153.  
  3154. o Invalid Condition Found 
  3155.  
  3156.   Rexxbase_FilterDBF 
  3157.  
  3158.   Rexxbase_ScanForRecord 
  3159.  
  3160.   Rexxbase_JoinDBF 
  3161.  
  3162. o Invalid Field Specification Found 
  3163.  
  3164.   Rexxbase_JoinDBF 
  3165.  
  3166. o Invalid Index Ordinal 
  3167.  
  3168.   Rexxbase_ChangePrimaryIndex 
  3169.  
  3170.   Rexxbase_ChangePrimaryIndex 
  3171.  
  3172. o Invalid Record Position 
  3173.  
  3174.   Rexxbase_UpdateDBF 
  3175.  
  3176. o Join Database Name Already In Use 
  3177.  
  3178.   Rexxbase_JoinDBF 
  3179.  
  3180. o Missing Index File Name,  Database is open. 
  3181.  
  3182.   Rexxbase_OpenDBF 
  3183.  
  3184. o Modify Failed 
  3185.  
  3186.   Rexxbase_ModifyDBF 
  3187.  
  3188. o New Tag Name Too Long 
  3189.  
  3190.   Rexxbase_AddTagToIndex 
  3191.  
  3192. o No Conditions Specified 
  3193.  
  3194.   Rexxbase_ScanForRecord 
  3195.  
  3196. o No DBF Name To Copy Structure To 
  3197.  
  3198.   Rexxbase_CreateFromDBF 
  3199.  
  3200. o No Filename Assigned  To Variable 
  3201.  
  3202.   Rexxbase_CreateDBF 
  3203.  
  3204. o No Filename Assigned To Variable 
  3205.  
  3206.   Rexxbase_OpenDBF 
  3207.  
  3208.   Rexxbase_CreateFromDBF 
  3209.  
  3210. o No Index Field Names Specified 
  3211.  
  3212.   Rexxbase_CreateIndex 
  3213.  
  3214. o No Index File Name Specified 
  3215.  
  3216.   Rexxbase_CreateIndex 
  3217.  
  3218.   Rexxbase_CreateMultipleIndexFile 
  3219.  
  3220. o No Index Ordinal Specified 
  3221.  
  3222.   Rexxbase_ChangePrimaryIndex 
  3223.  
  3224. o No Index Tag File Opened 
  3225.  
  3226.   Rexxbase_SetIndexTagName 
  3227.  
  3228. o No Index Tag Name Specified 
  3229.  
  3230.   Rexxbase_SetIndexTagName 
  3231.  
  3232. o No Joining Condition Specified 
  3233.  
  3234.   Rexxbase_JoinDBF 
  3235.  
  3236. o No Joining Fields Specified 
  3237.  
  3238.   Rexxbase_JoinDBF 
  3239.  
  3240. o No Locate String Specified 
  3241.  
  3242.   Rexxbase_FindRecord 
  3243.  
  3244. o No New Tag Name Specified 
  3245.  
  3246.   Rexxbase_AddTagToIndex 
  3247.  
  3248.   Rexxbase_DropTagFromIndex 
  3249.  
  3250. o No Record Number Specified 
  3251.  
  3252.   Rexxbase_GoToRecord 
  3253.  
  3254. o No Record Read 
  3255.  
  3256.   Rexxbase_DeleteRecord 
  3257.  
  3258.   Rexxbase_UndeleteRecord 
  3259.  
  3260. o No Rexx DBF Name Specified 
  3261.  
  3262.   Rexxbase_OpenDBF 
  3263.  
  3264.   Rexxbase_CloseDBF 
  3265.  
  3266.   Rexxbase_ReadDBF 
  3267.  
  3268.   Rexxbase_ReadPrevDBF 
  3269.  
  3270.   Rexxbase_GoToRecord 
  3271.  
  3272.   Rexxbase_WriteDBF 
  3273.  
  3274.   Rexxbase_UpdateDBF 
  3275.  
  3276.   Rexxbase_FilterDBF 
  3277.  
  3278.   Rexxbase_ScanForRecord 
  3279.  
  3280.   Rexxbase_CreateDBF 
  3281.  
  3282.   Rexxbase_CreateFromDBF 
  3283.  
  3284.   Rexxbase_ModifyDBF 
  3285.  
  3286.   Rexxbase_DeleteRecord 
  3287.  
  3288.   Rexxbase_UndeleteRecord 
  3289.  
  3290.   Rexxbase_FindRecord 
  3291.  
  3292.   Rexxbase_SetIndexTagName 
  3293.  
  3294.   Rexxbase_ChangePrimaryIndex 
  3295.  
  3296.   Rexxbase_CreateIndex 
  3297.  
  3298.   Rexxbase_CreateMultipleIndexFile 
  3299.  
  3300.   Rexxbase_AddTagToIndex 
  3301.  
  3302.   Rexxbase_DropTagFromIndex 
  3303.  
  3304.   Rexxbase_ReindexDBF 
  3305.  
  3306.   Rexxbase_PackDBF 
  3307.  
  3308.   Rexxbase_SummarizeDBF 
  3309.  
  3310.   Rexxbase_SortDBF 
  3311.  
  3312. o No Rexx Joined DBF Name Specified 
  3313.  
  3314.   Rexxbase_JoinDBF 
  3315.  
  3316. o No Sort DBF Name Specified 
  3317.  
  3318.   Rexxbase_SummarizeDBF 
  3319.  
  3320.   Rexxbase_SortDBF 
  3321.  
  3322. o No Tag Index Fields Specified 
  3323.  
  3324.   Rexxbase_AddTagToIndex 
  3325.  
  3326.   Rexxbase_DropTagFromIndex 
  3327.  
  3328. o Not Enough Memory For Sorting 
  3329.  
  3330.   Rexxbase_SummarizeDBF 
  3331.  
  3332.   Rexxbase_SortDBF 
  3333.  
  3334. o Not Enough Memory For Summarizing or Sorting 
  3335.  
  3336.   Rexxbase_SummarizeDBF 
  3337.  
  3338. o Primary Index File Not MDX Format 
  3339.  
  3340.   Rexxbase_DropTagFromIndex 
  3341.  
  3342. o Primary Index Not MDX Type 
  3343.  
  3344.   Rexxbase_SetIndexTagName 
  3345.  
  3346. o Record Locked 
  3347.  
  3348.   Rexxbase_SortDBF 
  3349.  
  3350. o Record Not Found 
  3351.  
  3352.   Rexxbase_FindRecord 
  3353.  
  3354.   Rexxbase_FindRecord 
  3355.  
  3356.   Rexxbase_FindRecord 
  3357.  
  3358.   Rexxbase_FindRecord 
  3359.  
  3360.   Rexxbase_FindRecord 
  3361.  
  3362. o Record locked 
  3363.  
  3364.   Rexxbase_ReadDBF 
  3365.  
  3366.   Rexxbase_ReadPrevDBF 
  3367.  
  3368.   Rexxbase_GoToRecord 
  3369.  
  3370.   Rexxbase_ScanForRecord 
  3371.  
  3372.   Rexxbase_FindRecord 
  3373.  
  3374.   Rexxbase_JoinDBF 
  3375.  
  3376.   Rexxbase_SummarizeDBF 
  3377.  
  3378. o Record with duplicate key not updated 
  3379.  
  3380.   Rexxbase_UpdateDBF 
  3381.  
  3382.   Rexxbase_PackDBF 
  3383.  
  3384. o Record with duplicate key not written 
  3385.  
  3386.   Rexxbase_WriteDBF 
  3387.  
  3388. o Second Database Name Unknown 
  3389.  
  3390.   Rexxbase_JoinDBF 
  3391.  
  3392. o Second Joined DBF Name Not Specified 
  3393.  
  3394.   Rexxbase_JoinDBF 
  3395.  
  3396. o Sort Field Count Not Found 
  3397.  
  3398.   Rexxbase_SummarizeDBF 
  3399.  
  3400.   Rexxbase_SortDBF 
  3401.  
  3402. o TOF 
  3403.  
  3404.   Rexxbase_ReadPrevDBF 
  3405.  
  3406.   Rexxbase_ReadPrevDBF 
  3407.  
  3408.   Rexxbase_GoToRecord 
  3409.  
  3410. o Tag Index File Has No Tags 
  3411.  
  3412.   Rexxbase_SetIndexTagName 
  3413.  
  3414. o Tag Index File Not Opened 
  3415.  
  3416.   Rexxbase_AddTagToIndex 
  3417.  
  3418.   Rexxbase_DropTagFromIndex 
  3419.  
  3420. o Unable To Write Fields To  File; rc = %3.3d 
  3421.  
  3422.   Rexxbase_SummarizeDBF 
  3423.  
  3424.   Rexxbase_SortDBF 
  3425.  
  3426. o Unknown Database Name 
  3427.  
  3428.   Rexxbase_CloseDBF 
  3429.  
  3430.   Rexxbase_ReadDBF 
  3431.  
  3432.   Rexxbase_ReadPrevDBF 
  3433.  
  3434.   Rexxbase_GoToRecord 
  3435.  
  3436.   Rexxbase_WriteDBF 
  3437.  
  3438.   Rexxbase_UpdateDBF 
  3439.  
  3440.   Rexxbase_FilterDBF 
  3441.  
  3442.   Rexxbase_ScanForRecord 
  3443.  
  3444.   Rexxbase_CreateFromDBF 
  3445.  
  3446.   Rexxbase_ModifyDBF 
  3447.  
  3448.   Rexxbase_DeleteRecord 
  3449.  
  3450.   Rexxbase_UndeleteRecord 
  3451.  
  3452.   Rexxbase_FindRecord 
  3453.  
  3454.   Rexxbase_SetIndexTagName 
  3455.  
  3456.   Rexxbase_ChangePrimaryIndex 
  3457.  
  3458.   Rexxbase_CreateIndex 
  3459.  
  3460.   Rexxbase_CreateMultipleIndexFile 
  3461.  
  3462.   Rexxbase_AddTagToIndex 
  3463.  
  3464.   Rexxbase_DropTagFromIndex 
  3465.  
  3466.   Rexxbase_ReindexDBF 
  3467.  
  3468.   Rexxbase_PackDBF 
  3469.  
  3470.   Rexxbase_SummarizeDBF 
  3471.  
  3472.   Rexxbase_SortDBF 
  3473.  
  3474.  
  3475. ΓòÉΓòÉΓòÉ 7.2. Internal Errors. ΓòÉΓòÉΓòÉ
  3476.  
  3477. The following is a list of internal errors. 
  3478.  
  3479. o All other data ignored after DBF name 
  3480.  
  3481. o All other data ignored after Sort DBF name 
  3482.  
  3483. o Bad date found, changed to all spaces. 
  3484.  
  3485. o Bad field type when getting field value 
  3486.  
  3487. o Bad_Field_Count 
  3488.  
  3489. o Can not find tagname 
  3490.  
  3491. o Can't allocate memo space 
  3492.  
  3493. o Can't make float field part of a key 
  3494.  
  3495. o Can't make logical field part of a key 
  3496.  
  3497. o Can't make memo field part of a key 
  3498.  
  3499. o Can't rebuild, new file not created 
  3500.  
  3501. o Can't rebuild, old file not open 
  3502.  
  3503. o Can't rename file for modify 
  3504.  
  3505. o Data Type Mismatch 
  3506.  
  3507. o Duplicate key not written to index file 
  3508.  
  3509. o Error while reading record, packing continues 
  3510.  
  3511. o Field Length Not Defined 
  3512.  
  3513. o Field Length Not Defined Correctly 
  3514.  
  3515. o Field Name Not Okay 
  3516.  
  3517. o Field Not Defined 
  3518.  
  3519. o Field Size Not Defined Correctly 
  3520.  
  3521. o Field Type Not Defined 
  3522.  
  3523. o Field Type Not Valid 
  3524.  
  3525. o Field delimiter character not found. Import stops. 
  3526.  
  3527. o Field truncated 
  3528.  
  3529. o Field truncated. 
  3530.  
  3531. o Field_Not_Defined 
  3532.  
  3533. o Invalid expression 
  3534.  
  3535. o Invalid expression - data type mismatch 
  3536.  
  3537. o Invalid expression - invalid logic connector 
  3538.  
  3539. o Key length too long 
  3540.  
  3541. o Key length too short 
  3542.  
  3543. o MDX File Already Opened 
  3544.  
  3545. o Memo field missing field delimiter, Import stops. 
  3546.  
  3547. o Memo field missing start field delimiter, Import stops. 
  3548.  
  3549. o Memo fields not allowed in conditions 
  3550.  
  3551. o No records to index 
  3552.  
  3553. o Not enough memory for index sorting 
  3554.  
  3555. o Not enough memory for mdx sorting 
  3556.  
  3557. o Numeric field expected, not found on input file. Import stops. 
  3558.  
  3559. o Read record size does not match 
  3560.  
  3561. o Record Size Too Large 
  3562.  
  3563. o Record with duplicate key not written 
  3564.  
  3565. o Tag name already in use. 
  3566.  
  3567. o Third parameter must be EXACT.  Parameter ignored 
  3568.  
  3569. o Too many files opened 
  3570.  
  3571. o Unable to change memo file size. 
  3572.  
  3573. o Unexpected encounter in read text file 
  3574.  
  3575. o Unknown delimiter character found. Import stops 
  3576.  
  3577. o Unknown field name in field list 
  3578.  
  3579. o Unknown field specified in key file define 
  3580.  
  3581. o Unknown field specified in key file open 
  3582.  
  3583. o Unknown name in expression 
  3584.  
  3585. o Unknown operator type in parse expression logic 
  3586.  
  3587. o Would add duplicate 
  3588.  
  3589. o Written record size does not match 
  3590.  
  3591. o alloc error 
  3592.  
  3593. o invalid expression - data type mismatch 
  3594.  
  3595. o logic field value invalid, value set to 'F' 
  3596.  
  3597. o memo field write failed 
  3598.  
  3599. o memo update failed 
  3600.  
  3601. o passed bad memopointer to write memo 
  3602.  
  3603.  
  3604. ΓòÉΓòÉΓòÉ 8. Control Variables. ΓòÉΓòÉΓòÉ
  3605.  
  3606. The following is a description of RexxBase error, file, and date handling and 
  3607. extended control facilities. 
  3608.  
  3609.  
  3610. ΓòÉΓòÉΓòÉ 8.1. RexxBase Errors ΓòÉΓòÉΓòÉ
  3611.  
  3612. Errors are reported in two different ways, return codes and the error stem 
  3613. variable. If the RexxBase function returns a value other than "" then the 
  3614. function did not complete successfully. 
  3615.  
  3616.  
  3617. ΓòÉΓòÉΓòÉ 8.1.1. Where To Find Internal Error Messages ΓòÉΓòÉΓòÉ
  3618.  
  3619.  You may direct error message to one of three targets. 
  3620.  
  3621. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3622. ΓöéTarget    ΓöéDescription                                  Γöé
  3623. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3624. ΓöéCON       ΓöéRexxBase sends all error messages to the     Γöé
  3625. Γöé          ΓöéSTDIO file, or console.  This is the default.Γöé
  3626. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3627. ΓöéPRN       ΓöéRexxBase sends all error messages to the PRN Γöé
  3628. Γöé          Γöéfile, or printer.                            Γöé
  3629. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3630. ΓöéSTEM      ΓöéAll messages, for the last executed RexxBase Γöé
  3631. Γöé          Γöéfunction are sent to the stem variable       Γöé
  3632. Γöé          ΓöéRexxBase.Error.   See below.                 Γöé
  3633. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3634.  
  3635.  You should set this variable prior to initializing RexxBase. 
  3636.  
  3637. /* */
  3638. RexxBase.Error = 'stem' /* sends rexxbase errors to the stem variable */
  3639. ...
  3640. dbf = ''
  3641. rc = RexxBase_OpenDBF('dbf')
  3642. if rc <> '' then do
  3643.    do i = 1 to rexxbase.error.0
  3644.      say rexxbase.error.i
  3645.   end
  3646. end
  3647. ...
  3648.  
  3649. Whether a function failed or not, there maybe other types of errors and warning 
  3650. messages that are useful to your program. These messages are found in the 
  3651. RexxBase error stem variable. 
  3652.  
  3653. All internal system and control errors can be directed to a stem variable named 
  3654. REXXBASE.ERROR.  The zeroth element is a counter This element contains them 
  3655. number of errors in the stem variable.  Each time you call a RexxBase function 
  3656. the counter is reset to zero.  Your procedure should check what is returned 
  3657. from the function call. 
  3658.  
  3659. For a further description of stem variables refer to your Rexx documentation. 
  3660.  
  3661.  
  3662. ΓòÉΓòÉΓòÉ 8.1.2. Internal Error List. ΓòÉΓòÉΓòÉ
  3663.  
  3664. The following is a list of errors and a brief explanation. 
  3665.  
  3666. Error     Description 
  3667. All other data ignored after Sort DBF name 
  3668.           More parameters were specified than are required 
  3669. Logic field value invalid, value set to 'F' 
  3670.           The value of a logic field, which will be adding to or updating a 
  3671.           database record contained an invalid value. 
  3672. Can't position at end of memo file 
  3673.           There is a severe error with a DBT file. 
  3674. Bad field type when getting field value 
  3675.           Internal error - A field type has changed 
  3676. Bad date found, changed to all spaces. 
  3677.           The value of a date field, which will be added to or updating a 
  3678.           database record contained an invalid value. 
  3679. All other data ignored after DBF name 
  3680.           More parameters were specified than are required 
  3681. Dos open error ### for file @@@@@@@@@@ 
  3682.           Operating system error, value found in ###, while trying to open file 
  3683.           @@@@@@@@@@@ 
  3684. Dos read anchor error #### for file @@@@@@@@@@ 
  3685.           Operating system error, value found in ###, while trying to read file 
  3686.           @@@@@@@@@@@ 
  3687. Unknown field specified in key file open 
  3688.           A field name specified in an index build is not part of the database 
  3689. Can't make memo field part of a key 
  3690.           A field name specified in an index build is a memo field.  Memo 
  3691.           fields can not be part of an index. 
  3692. Can't make logical field part of a key 
  3693.           A field name specified in an index build is a logical field.  Logical 
  3694.           fields can not be part of an index. 
  3695. Unknown field specified in key file define 
  3696.           A field name specified in an index build is not in the database. 
  3697. Key length too short 
  3698.           Internal error, the calculated length for a key is less than one (1). 
  3699. Would add duplicate 
  3700.           Writing a new record to database creates a duplicate key.  Unique key 
  3701.           value is FALSE. 
  3702. Dos write anchor error #### for file @@@@@@@@@@ 
  3703.           Operating system error, value found in ###, while trying to write 
  3704.           file @@@@@@@@@@@ 
  3705. Not enough memory for index sorting. 
  3706.           Not enough internal memory space to create temporary sort file for 
  3707.           indexing function. 
  3708. Can't rename file for modify 
  3709.           Modify Structure function attempts to rename the old file.  Failure 
  3710.           probably caused by duplicate name. 
  3711. Can't rebuild, old file not open 
  3712.           Internal error.  Somehow the file has been closed. 
  3713. Can't rebuild, new file not created 
  3714.           Modify Structure function attempted to create the new file.  Old file 
  3715.           has been renamed but ...failure probably caused by duplicate name or 
  3716.           lack of disk space. 
  3717. Unable to allocate temp file memory ## 
  3718.           Not enough internal memory space to create file space.  Operating 
  3719.           system error value is ## 
  3720. Dos open error ### for text file @@@@@@@@@@@ 
  3721.           Operating system error, value found in ###, while trying to open DBT 
  3722.           file @@@@@@@@@@@ 
  3723. Field Not Defined 
  3724.           Create function error - can not find variable. 
  3725. Bad Field Count 
  3726.           Field count for Create is either less than 1 or greater than 128 
  3727. Field Name Not Okay 
  3728.           Field name does not satisfy naming convention. 
  3729. Field Type Not Defined 
  3730.           Create function needs to know the field type(characteristics) 
  3731. Field Type Not Valid 
  3732.           Field type specified is not C, D, L, N or M. 
  3733. Field Type Not Valid 
  3734.           Create function needs to know the field length 
  3735. Field Length Not Defined Correctly 
  3736.           The field length requested does not satisfy the length limitations 
  3737.           for its type. 
  3738. Record Size Too Large 
  3739.           Calculated record length is greater than 4000.  4000 is maximum 
  3740.           allowed. 
  3741.  
  3742.  
  3743. ΓòÉΓòÉΓòÉ 8.2. File Control Variables ΓòÉΓòÉΓòÉ
  3744.  
  3745. RexxBase offers several control variables to enhance control over your database 
  3746. files. 
  3747.  
  3748.  
  3749. ΓòÉΓòÉΓòÉ 8.2.1. REXXBASE.UPDATEHEADERCOUNTER. ΓòÉΓòÉΓòÉ
  3750.  
  3751. You can control how often the database header record gets updated.  You change 
  3752. the RexxBase.UpdateHeaderCounter.  This sets an internal counter indicating how 
  3753. often after every RexxBase_WriteDBF command the header record is updated.  The 
  3754. higher the number the less often the header record is updated.  But if the 
  3755. header record is not updated  and there is a system crash then the header 
  3756. record will not contain accurate information. 
  3757.  
  3758. The default value is one. 
  3759.  
  3760. A value of zero indicates that the header record is only updated when the 
  3761. database is closed. 
  3762.  
  3763. The value is only set when a database is opened.  Therefore changing the value 
  3764. after a database has been opened has no affect on that database. 
  3765.  
  3766.  
  3767. ΓòÉΓòÉΓòÉ 8.2.2. Safety - Preventing File Deletion ΓòÉΓòÉΓòÉ
  3768.  
  3769. REXXBASE.SAFETY allows for a level of protection from destroying, deleting or 
  3770. overwriting database and index files. 
  3771.  
  3772. When your routine sets REXXBASE.SAFETY to "ON", anytime RexxBase opens a file, 
  3773. in a creation function (i.e.  sort output file, create index, etc.)  the 
  3774. function will fail.  Check both the return code from the function and/or the 
  3775. rexxbase.error  stem variable. 
  3776.  
  3777. When REXXBASE.SAFETY is set to "OFF" then any routine can destroy a file. 
  3778. There may be information in the  rexxbase.error  stem variable but the return 
  3779. code, even if successful, will be "". 
  3780.  
  3781. The default value is "OFF".  If set incorrectly the default value will be used. 
  3782.  
  3783.  
  3784. ΓòÉΓòÉΓòÉ 8.2.3. REXXBASE.READ ΓòÉΓòÉΓòÉ
  3785.  
  3786. When REXXBASE.READ is set to "OFF" then the Rexxbase_OpenDBF will open the file 
  3787. for NO read access.  This means any routine that reads a file, that was opened 
  3788. when set REXXBASE.READ was set to "OFF", will fail. 
  3789.  
  3790. The default value is "ON".  If set incorrectly the default value will be used. 
  3791.  
  3792.  
  3793. ΓòÉΓòÉΓòÉ 8.2.4. REXXBASE.WRITE ΓòÉΓòÉΓòÉ
  3794.  
  3795. When REXXBASE.WRITE is set to "OFF" then the Rexxbase_OpenDBF will open the 
  3796. file for NO write access.  This means any routine that writes to a file, that 
  3797. was opened when set REXXBASE.READ was set to "OFF", will fail. 
  3798.  
  3799. The default value is "ON".  If set incorrectly the default value will be used. 
  3800.  
  3801.  
  3802. ΓòÉΓòÉΓòÉ 8.2.5. REXXBASE.UNIQUE ΓòÉΓòÉΓòÉ
  3803.  
  3804. When REXXBASE.UNIQUE is set to "ON" then the Rexxbase_CreateIndex creates an 
  3805. index file with unique keys.  This prevents duplicate keys from being added to 
  3806. the index file. 
  3807.  
  3808. When REXXBASE.UNIQUE is set to "OFF" then the Rexxbase_CreateIndex creates an 
  3809. index file without unique keys.  This allows duplicate keys from being added to 
  3810. the index file with Rexxbase_ReadDBF and Rexxbase_UpdateDBF functions. 
  3811.  
  3812. The default value is "OFF".  If set incorrectly the default value will be used. 
  3813. This control is less restrictive than Rexxbase.ALLOWDUPLICATEINDEXES. 
  3814.  
  3815.  
  3816. ΓòÉΓòÉΓòÉ 8.2.6. REXXBASE.ALLOWDUPLICATEINDEXES ΓòÉΓòÉΓòÉ
  3817.  
  3818. When REXXBASE.ALLOWDUPLICATEINDEXES is set to "NO" the RexxBase_WriteDBF and 
  3819. RexxBase_UpdateDBF functions will not add record when another record with a 
  3820. similar index is present. This control is more restrictive than 
  3821. Rexxbase.UNIQUE. 
  3822.  
  3823. When REXXBASE.ALLOWDUPLICATEINDEXES is set to "YES" then the Rexxbase_WriteDBF 
  3824. and Rexxbase_UpdateDBF can add records to the DBF even if a duplicate key 
  3825. exists. 
  3826.  
  3827. The default value is "YES".  If set incorrectly the default value will be used. 
  3828.  
  3829.  
  3830. ΓòÉΓòÉΓòÉ 8.2.7. REXXBASE.SHARE ΓòÉΓòÉΓòÉ
  3831.  
  3832. Rexxbase offers a facility for file sharing your databases. 
  3833.  
  3834. When REXXBASE.SHARE is set to "OFF" then the Rexxbase_OpenDBF will open the 
  3835. file NO OTHER external program file access.  This will prevent any other 
  3836. program in the system from accessing the file.  Also, if the file is already 
  3837. opened, by another program, your routine will fail.  This is file locking. 
  3838.  
  3839. When REXXBASE.SHARE is set to "READ" then the Rexxbase_OpenDBF will open the 
  3840. file for read only sharing.  This will allow any other program in the system to 
  3841. read your open database file. 
  3842.  
  3843. Also, if the file is already opened by another program for no read sharing, 
  3844. your routine will fail. 
  3845.  
  3846. When REXXBASE.SHARE is set to "WRITE" then the Rexxbase_OpenDBF will open the 
  3847. file for write only sharing.  This will allow any other program in the system 
  3848. to have write access the file, not read access. 
  3849.  
  3850. Also, if the file is already opened by another program for no write sharing, 
  3851. your routine will fail. 
  3852.  
  3853. When REXXBASE.SHARE is set to "READWRITE" then the Rexxbase_OpenDBF will open 
  3854. the file for read and write sharing.  This will allow any other program in the 
  3855. system to have access the file. 
  3856.  
  3857. Also, if the file is already opened by another program for no sharing, your 
  3858. routine will fail. 
  3859.  
  3860. The default value is "OFF".  If set incorrectly the default value will be used. 
  3861.  
  3862. You may set REXXBASE.SHARE at anytime and as often as you like.  But it is only 
  3863. used when the database is opened with a Rexxbase_OpenDBF. 
  3864.  
  3865.  
  3866. ΓòÉΓòÉΓòÉ 8.3. Controlling Date Format. ΓòÉΓòÉΓòÉ
  3867.  
  3868. RexxBase offers a way to control the format of dates.  By turning the format 
  3869. control on and off dates are presented in either internal xBase format or in a 
  3870. display format. 
  3871.  
  3872.  
  3873. ΓòÉΓòÉΓòÉ 8.3.1. REXXBASE.FORMATDATE. ΓòÉΓòÉΓòÉ
  3874.  
  3875. When RexxBase.FormatDate is turned "OFF" then all date fields are in the 
  3876. following 8 numeric-character format:  CCYYMMDD. 
  3877.  
  3878. CC - century. 
  3879.  
  3880. YY - year. 
  3881.  
  3882. MM - month. 
  3883.  
  3884. DD - day. 
  3885.  
  3886. If RexxBase.FormatDate is "ON", the default value, then date fields are 
  3887. formatted based on the Country Code.  as follows:  (all are 8 bytes long with 
  3888. separators). 
  3889.  
  3890. MM/DD/YY, slashes or some other separator is required 
  3891.  
  3892. DD/MM/YY, slashes or some other separator is required 
  3893.  
  3894. YY/MM/DD, slashes or some other separator is required 
  3895.  
  3896. The default value is "ON".  If set incorrectly the default value will be used. 
  3897.  
  3898.  
  3899. ΓòÉΓòÉΓòÉ 8.4. Controlling File Format. ΓòÉΓòÉΓòÉ
  3900.  
  3901. RexxBase offers a way to control which file format version of dBase to use.  By 
  3902. specifying the format you are able to use either dBase III or dBase IV formats. 
  3903.  
  3904. dBase internal file structure allows for files to be identified with one 
  3905. exception. If a database does not use a memo field and a dBase IV file does not 
  3906. use a float field then there is not way to distinguish between the two 
  3907. versions. Therefore, you should always specify the file format. 
  3908.  
  3909.  
  3910. ΓòÉΓòÉΓòÉ 8.4.1. REXXBASE.dBaseFileFormat. ΓòÉΓòÉΓòÉ
  3911.  
  3912. When RexxBase.dBaseFileFormat is set to "dBase3", the default value, then all 
  3913. database functions are processed in dBase III format. 
  3914.  
  3915. When set to "dBase4", the files are processed using dBase IV format. 
  3916.  
  3917. If set incorrectly the default value will be used. 
  3918.  
  3919.  
  3920. ΓòÉΓòÉΓòÉ 8.4.2. REXXBASE.REXXLOGICAL ΓòÉΓòÉΓòÉ
  3921.  
  3922. When RexxBase.REXXLOGICAL is set to 'ON', logical fields internally set to 'Y' 
  3923. will be set externally to '1' and fields set to 'N" will be set as '0', 
  3924.  
  3925. When set to 'OFF', the internal value of a logical field is set. 
  3926.  
  3927. If set incorrectly the default value "OFF" will be used. 
  3928.  
  3929.  
  3930. ΓòÉΓòÉΓòÉ 8.4.3. REXXBASE.SKIPDELETED ΓòÉΓòÉΓòÉ
  3931.  
  3932. When RexxBase.SKIPDELETED  is set to 'ON' then all RexxBase functions used to 
  3933. retrieve records will not return a deleted record. This will cause either the 
  3934. next non-deleted record to be returned or a NOT FOUND condition to occur. 
  3935.  
  3936. When set to 'OFF', the default value, deleted records are returned. 
  3937.  
  3938. If set incorrectly the default value will be used. 
  3939.  
  3940.  
  3941. ΓòÉΓòÉΓòÉ 8.5. Binary Data Control. ΓòÉΓòÉΓòÉ
  3942.  
  3943. RexxBase offers a way to store binary data in CHAR and MEMO fields.  While 
  3944. storing binary data is not in itself tricky, previous versions of RexxBase used 
  3945. null terminated strings to determine data size and length. 
  3946.  
  3947. dBase III DBT files store memo fields with two (2) end of file indicators 
  3948. hex(1a). Therefore if your binary data contains this character then the field 
  3949. will be terminated prematurely.  To avoid this situation, use the dBase IV 
  3950. format. 
  3951.  
  3952.  
  3953. ΓòÉΓòÉΓòÉ 8.5.1. REXXBASE.UseStringLengths. ΓòÉΓòÉΓòÉ
  3954.  
  3955. When RexxBase.UseStringLengths is set to "YES", the default value, then all 
  3956. CHAR and MEMO fields will be stored and retrieved with lengths based on a null 
  3957. terminating character in the data field. 
  3958.  
  3959. When set to "NO", the fields are stored and returned to you using the specific 
  3960. length as either measured by REXX or stored in the DBT file. 
  3961.  
  3962. If set incorrectly the default value will be used. 
  3963.  
  3964.  
  3965. ΓòÉΓòÉΓòÉ 9. Next Releases. ΓòÉΓòÉΓòÉ
  3966.  
  3967. The following is a list of the next planned releases. 
  3968.  
  3969.  
  3970. ΓòÉΓòÉΓòÉ 9.1. Multi-User Access. ΓòÉΓòÉΓòÉ
  3971.  
  3972. While file locking is fine for some applications a true multi-user control is 
  3973. need for a LAN system. 
  3974.  
  3975.  
  3976. ΓòÉΓòÉΓòÉ 9.2. SQL Interface. ΓòÉΓòÉΓòÉ
  3977.  
  3978. Someone pass me a SQL engine. 
  3979.  
  3980.  
  3981. ΓòÉΓòÉΓòÉ 9.3. SOM/DSOM Interface To The Database Routines. ΓòÉΓòÉΓòÉ
  3982.  
  3983. Gain access to the database, outside the realm of Rexx, using C/C++ class 
  3984. libraries through objects. 
  3985.  
  3986.  
  3987. ΓòÉΓòÉΓòÉ 10. Suggestions and Bugs. ΓòÉΓòÉΓòÉ
  3988.  
  3989. Please call or write to us at our address with suggestions or to report bugs. 
  3990.  
  3991. You can reach us through CompuServe by contacting Joe McVerry at 74150,2370 
  3992.  
  3993.  
  3994. ΓòÉΓòÉΓòÉ 11. Shareware Software ΓòÉΓòÉΓòÉ
  3995.  
  3996. DEFINITION OF SHAREWARE SOFTWARE 
  3997.  
  3998. Shareware Software distribution gives users a chance to try software before 
  3999. buying it.  If you try a Shareware software program and continue using it, you 
  4000. are expected to register.  Individual programs differ on details -- some 
  4001. request registration while others require it, some specify a maximum trial 
  4002. period.  With registration, you get anything from the simple right to continue 
  4003. using the software to an updated program with printed manual. 
  4004.  
  4005.  
  4006. ΓòÉΓòÉΓòÉ 11.1. Copyright ΓòÉΓòÉΓòÉ
  4007.  
  4008. Copyright laws apply to both Shareware and commercial software, and the 
  4009. copyright holder retains all rights, with a few specific exceptions as stated 
  4010. below.  Shareware software authors are accomplished programmers, just like 
  4011. commercial authors, and the programs are of comparable quality.  (In both 
  4012. cases, there are good programs and bad ones!)  The main difference is in the 
  4013. method of distribution.  The author specifically grants the right to copy and 
  4014. distribute the software, either to all and sundry or to a specific group.  For 
  4015. example, some authors require written permission before a commercial disk 
  4016. vendor may copy their Shareware software. 
  4017.  
  4018.  
  4019. ΓòÉΓòÉΓòÉ 11.2. Distribution. ΓòÉΓòÉΓòÉ
  4020.  
  4021. Shareware software is a distribution method, not a type of software.  You 
  4022. should find software that suits your needs and pocketbook, whether it's 
  4023. commercial or Shareware software.  The Shareware software system makes fitting 
  4024. your needs easier, because you can try before you buy.  And because the 
  4025. overhead is low, prices are low also.  Shareware software has the ultimate 
  4026. money-back guarantee -- if you don't use the product, you don't pay for it. 
  4027.  
  4028.  
  4029. ΓòÉΓòÉΓòÉ 12. Disclaimer ΓòÉΓòÉΓòÉ
  4030.  
  4031. DISCLAIMER - AGREEMENT 
  4032.  
  4033. Users of RexxBase must accept this disclaimer of warranty:  "REXXBASE IS 
  4034. SUPPLIED AS IS.  AMERICAN CODERS DISCLAIMS ALL WARRANTIES, EXPRESSED OR 
  4035. IMPLIED, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY AND 
  4036. OF FITNESS FOR ANY PURPOSE.  AMERICAN CODERS LTD.  ASSUMES NO LIABILITY FOR 
  4037. DAMAGES, DIRECT OR CONSEQUENTIAL, WHICH MAY RESULT FROM THE USE OF REXXBASE." 
  4038.  
  4039.  
  4040. ΓòÉΓòÉΓòÉ 13. Sharing RexxBase ΓòÉΓòÉΓòÉ
  4041.  
  4042. RexxBase is a "Shareware software program" and is provided at no charge to the 
  4043. user for evaluation.  Feel free to share it with your friends, but please do 
  4044. not give it away altered or as part of another system.  The essence of 
  4045. "user-supported" software is to provide personal computer users with quality 
  4046. software without high prices, and yet to provide incentive for programmers to 
  4047. continue to develop new products.  If you find this program useful and find 
  4048. that you are using RexxBase and continue to use RexxBase after a reasonable 
  4049. trial period of 30 days, you must make a registration payment of $95.00 to 
  4050. American Coders, Ltd.  The $95.00 registration fee will license one copy for 
  4051. use on any one computer at any one time.  You must treat this software just 
  4052. like a book.  An example is that this software may be used by any number of 
  4053. people and may be freely moved from one computer location to another, so long 
  4054. as there is no possibility of it being used at one location while it's being 
  4055. used at another.  Just as a book cannot be read by two different persons at the 
  4056. same time. 
  4057.  
  4058.  
  4059. ΓòÉΓòÉΓòÉ 13.1. Commercial Users ΓòÉΓòÉΓòÉ
  4060.  
  4061. Commercial users of RexxBase must register and pay for their copies of RexxBase 
  4062. within 30 days of first use or their license is withdrawn.  Site-License 
  4063. arrangements may be made by contacting American Coders, Ltd. 
  4064.  
  4065.  
  4066. ΓòÉΓòÉΓòÉ 13.2. Distributing ΓòÉΓòÉΓòÉ
  4067.  
  4068. Anyone distributing RexxBase for any kind of remuneration must first contact 
  4069. American Coders, Ltd. at our address below for authorization.  This 
  4070. authorization will be automatically granted to distributors recognized by the 
  4071. (ASP) as adhering to its guidelines for shareware distributors, and such 
  4072. distributors may begin offering RexxBase immediately (However American Coders, 
  4073. Ltd.  must still be advised so that the distributor can be kept up-to-date with 
  4074. the latest version of RexxBase.). 
  4075.  
  4076.  
  4077. ΓòÉΓòÉΓòÉ 13.3. Pass Along ΓòÉΓòÉΓòÉ
  4078.  
  4079. You are encouraged to pass a copy of RexxBase along to your friends for 
  4080. evaluation.  Please encourage them to register their copy if they find that 
  4081. they can use it.  All registered users will receive a copy of the latest 
  4082. version of the RexxBase system.